Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 97.06 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 175.9 kB / 16.57 MB, free: 6.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.551/1.551, allocations: 205.4 MB / 222.7 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3753/0.3753, allocations: 43.55 MB / 314.5 MB, free: 8.801 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006158/0.000616, allocations: 16 kB / 384 MB, free: 7.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1315, allocations: 58.85 MB / 442.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0006877/0.1323, allocations: 275 kB / 443.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006928/0.133, allocations: 384.9 kB / 443.5 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.699e-05/0.133, allocations: 0 / 443.5 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.453e-05/0.133, allocations: 0 / 443.5 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.725e-05/0.1331, allocations: 3.938 kB / 443.5 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.1334, allocations: 95.77 kB / 443.6 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.318e-05/0.1335, allocations: 15.97 kB / 443.6 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.308e-05/0.1336, allocations: 7.938 kB / 443.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.357e-05/0.1336, allocations: 11.92 kB / 443.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.08e-05/0.1337, allocations: 19.92 kB / 443.6 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.788e-06/0.1337, allocations: 0 / 443.6 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002434/0.1339, allocations: 143.8 kB / 443.8 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.888e-05/0.134, allocations: 19.91 kB / 443.8 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.466e-05/0.134, allocations: 25.7 kB / 443.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.1341, allocations: 76.12 kB / 443.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.1341, allocations: 0 / 443.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.488e-06/0.1341, allocations: 3.984 kB / 443.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.1342, allocations: 0 / 443.9 MB, free: 11.91 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004343/0.1346, allocations: 351.3 kB / 444.2 MB, free: 11.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.1346, allocations: 12.03 kB / 444.3 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.067e-05/0.1347, allocations: 38.55 kB / 444.3 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.912e-05/0.1347, allocations: 15.86 kB / 444.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.1349, allocations: 167 kB / 444.5 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.1349, allocations: 7.938 kB / 444.5 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.1349, allocations: 8 kB / 444.5 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.135, allocations: 49.67 kB / 444.5 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.1351, allocations: 0 / 444.5 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.1351, allocations: 8 kB / 444.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.1351, allocations: 0 / 444.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.685e-05/0.1352, allocations: 31.88 kB / 444.6 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001832/0.1353, allocations: 169.6 kB / 444.7 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.1356, allocations: 66.48 kB / 444.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002735/0.1358, allocations: 113.1 kB / 444.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.1359, allocations: 34.56 kB / 445 MB, free: 10.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.1359, allocations: 4.281 kB / 445 MB, free: 10.67 MB / 382.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.1345/0.2704, allocations: 6.614 MB / 451.6 MB, free: 4.016 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.2705, allocations: 59.34 kB / 451.6 MB, free: 3.945 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.2706, allocations: 101.9 kB / 451.7 MB, free: 3.836 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.059e-05/0.2707, allocations: 29.7 kB / 451.8 MB, free: 3.801 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.205e-05/0.2707, allocations: 80.14 kB / 451.8 MB, free: 3.719 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.883e-05/0.2709, allocations: 67 kB / 451.9 MB, free: 3.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.976e-05/0.2709, allocations: 8 kB / 451.9 MB, free: 3.645 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002225/0.2711, allocations: 326.8 kB / 452.2 MB, free: 3.316 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006038/0.2717, allocations: 239.8 kB / 452.5 MB, free: 3.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.2723, allocations: 243.8 kB / 452.7 MB, free: 2.844 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.2733, allocations: 291.8 kB / 453 MB, free: 2.559 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2733, allocations: 480 / 453 MB, free: 2.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001783/0.2751, allocations: 0.6412 MB / 453.6 MB, free: 1.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.2752, allocations: 8 kB / 453.6 MB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.2752, allocations: 3.938 kB / 453.6 MB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.2752, allocations: 0 / 453.6 MB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000708/0.2759, allocations: 123.7 kB / 453.8 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.2759, allocations: 3.953 kB / 453.8 MB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004141/0.2764, allocations: 31.97 kB / 453.8 MB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.104e-05/0.2764, allocations: 31.94 kB / 453.8 MB, free: 1.715 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001722/0.2766, allocations: 121.8 kB / 453.9 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.7e-05/0.2767, allocations: 15.84 kB / 454 MB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002141/0.2788, allocations: 0.7592 MB / 454.7 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.2788, allocations: 3.984 kB / 454.7 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.2788, allocations: 8 kB / 454.7 MB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2788, allocations: 0 / 454.7 MB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2345/0.5133, allocations: 1.208 MB / 455.9 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.5134, allocations: 3.781 kB / 455.9 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005262/0.5139, allocations: 106.2 kB / 456 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-05/0.5139, allocations: 2.938 kB / 456.1 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.892e-05/0.514, allocations: 30.8 kB / 456.1 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.514, allocations: 3.844 kB / 456.1 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.514, allocations: 2.594 kB / 456.1 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.5156, allocations: 0.6808 MB / 456.8 MB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.638e-05/0.5156, allocations: 87.56 kB / 456.9 MB, free: 44.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.836e-05/0.5157, allocations: 5.688 kB / 456.9 MB, free: 44.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003901/0.5161, allocations: 37.36 kB / 456.9 MB, free: 44.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.862e-05/0.5161, allocations: 13.56 kB / 456.9 MB, free: 44.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.363e-05/0.5162, allocations: 29.84 kB / 456.9 MB, free: 44.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.194e-05/0.5162, allocations: 85.58 kB / 457 MB, free: 44.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5162, allocations: 0 / 457 MB, free: 44.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001795/0.518, allocations: 0.6415 MB / 457.7 MB, free: 44.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004471/0.5225, allocations: 1.844 MB / 459.5 MB, free: 43.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.5236, allocations: 477.5 kB / 460 MB, free: 43.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5236, allocations: 3.594 kB / 460 MB, free: 43.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004634/0.5241, allocations: 220.1 kB / 460.2 MB, free: 43.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001928/0.5243, allocations: 2.375 kB / 460.2 MB, free: 43.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.5271, allocations: 0.6878 MB / 460.9 MB, free: 42.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.5273, allocations: 0.7026 MB / 461.6 MB, free: 42.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005049/0.5278, allocations: 123.4 kB / 461.7 MB, free: 42.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/0.5281, allocations: 97.5 kB / 461.8 MB, free: 42.13 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.5281, allocations: 0 / 461.8 MB, free: 42.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08311/0.6112, allocations: 57.89 MB / 0.5075 GB, free: 13.29 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001328/0.6114, allocations: 194.6 kB / 0.5077 GB, free: 13.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.167/2.779, allocations: 4 kB / 0.5077 GB, free: 13.04 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat does not exist to compare? outputFormat=mat