Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",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.001193/0.001193, allocations: 96.75 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.001508/0.001508, allocations: 175.1 kB / 16.57 MB, free: 6.391 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.531/1.531, allocations: 205.4 MB / 222.7 MB, free: 5.672 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.3542/0.3542, allocations: 43.54 MB / 314.5 MB, free: 9.008 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.0004871/0.0004872, allocations: 16 kB / 384 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.122, allocations: 58.87 MB / 442.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0006951/0.1228, allocations: 275 kB / 443.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006055/0.1234, allocations: 344.7 kB / 443.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.357e-05/0.1235, allocations: 0 / 443.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.067e-05/0.1235, allocations: 0 / 443.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.494e-05/0.1235, allocations: 3.984 kB / 443.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003096/0.1238, allocations: 79.73 kB / 443.5 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.429e-05/0.1239, allocations: 15.98 kB / 443.6 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.888e-05/0.1239, allocations: 4 kB / 443.6 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.266e-05/0.124, allocations: 11.92 kB / 443.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.774e-05/0.124, allocations: 23.91 kB / 443.6 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.1241, allocations: 0 / 443.6 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001898/0.1243, allocations: 103.9 kB / 443.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.073e-05/0.1243, allocations: 4 kB / 443.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.915e-05/0.1243, allocations: 29.7 kB / 443.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.1244, allocations: 68.11 kB / 443.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1244, allocations: 0 / 443.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1245, allocations: 0 / 443.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.1245, allocations: 0 / 443.8 MB, free: 12.27 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.0003601/0.1248, allocations: 355.3 kB / 444.1 MB, free: 11.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.1249, allocations: 8.031 kB / 444.1 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.056e-05/0.1249, allocations: 42.5 kB / 444.2 MB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.331e-05/0.125, allocations: 7.859 kB / 444.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.1251, allocations: 171 kB / 444.4 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-06/0.1251, allocations: 4 kB / 444.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.1251, allocations: 8 kB / 444.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.1253, allocations: 49.62 kB / 444.4 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.1253, allocations: 3.906 kB / 444.4 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.1253, allocations: 4 kB / 444.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.1253, allocations: 7.938 kB / 444.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.94e-05/0.1254, allocations: 27.97 kB / 444.5 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001746/0.1256, allocations: 165.6 kB / 444.6 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000187/0.1258, allocations: 62.58 kB / 444.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002542/0.126, allocations: 117.1 kB / 444.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.1261, allocations: 34.56 kB / 444.8 MB, free: 11.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.1261, allocations: 0 / 444.8 MB, free: 11.03 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.04093/0.167, allocations: 2.806 MB / 447.6 MB, free: 8.188 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.1671, allocations: 59.88 kB / 447.7 MB, free: 8.117 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.974e-05/0.1672, allocations: 101.8 kB / 447.8 MB, free: 8.008 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.1672, allocations: 33.7 kB / 447.8 MB, free: 7.969 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.668e-05/0.1673, allocations: 84.12 kB / 447.9 MB, free: 7.883 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.53e-05/0.1674, allocations: 63.02 kB / 448 MB, free: 7.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.413e-05/0.1674, allocations: 7.938 kB / 448 MB, free: 7.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1675, allocations: 322.8 kB / 448.3 MB, free: 7.488 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003904/0.1679, allocations: 187.9 kB / 448.5 MB, free: 7.305 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003777/0.1683, allocations: 192.8 kB / 448.7 MB, free: 7.117 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005194/0.1689, allocations: 219.4 kB / 448.9 MB, free: 6.906 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1689, allocations: 0 / 448.9 MB, free: 6.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001048/0.1699, allocations: 497.3 kB / 449.4 MB, free: 6.414 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.17, allocations: 4 kB / 449.4 MB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.17, allocations: 0 / 449.4 MB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.17, allocations: 4 kB / 449.4 MB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/0.1704, allocations: 75.94 kB / 449.5 MB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.1704, allocations: 4 kB / 449.5 MB, free: 6.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.1706, allocations: 31.92 kB / 449.5 MB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.467e-05/0.1707, allocations: 19.98 kB / 449.5 MB, free: 6.277 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.0001302/0.1708, allocations: 121.8 kB / 449.6 MB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.174e-05/0.1708, allocations: 7.906 kB / 449.6 MB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.1721, allocations: 0.5682 MB / 450.2 MB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1721, allocations: 4 kB / 450.2 MB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1721, allocations: 3.984 kB / 450.2 MB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1721, allocations: 0 / 450.2 MB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.1743, allocations: 0.9517 MB / 451.2 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.1743, allocations: 4 kB / 451.2 MB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.1746, allocations: 72.39 kB / 451.2 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-05/0.1746, allocations: 7.984 kB / 451.2 MB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.1746, allocations: 20 kB / 451.3 MB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/0.1747, allocations: 3.938 kB / 451.3 MB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1747, allocations: 7.938 kB / 451.3 MB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009677/0.1756, allocations: 0.5529 MB / 451.8 MB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.077e-05/0.1757, allocations: 89 kB / 451.9 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.951e-05/0.1757, allocations: 11.95 kB / 451.9 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.176, allocations: 27.98 kB / 452 MB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-05/0.176, allocations: 15.97 kB / 452 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.709e-05/0.176, allocations: 16 kB / 452 MB, free: 3.617 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.173e-05/0.1761, allocations: 87.27 kB / 452.1 MB, free: 3.531 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1761, allocations: 0 / 452.1 MB, free: 3.531 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009413/0.177, allocations: 308 kB / 452.4 MB, free: 3.23 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.002483/0.1795, allocations: 1.632 MB / 454 MB, free: 1.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008029/0.1803, allocations: 371.7 kB / 454.4 MB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.1803, allocations: 4 kB / 454.4 MB, free: 1.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003378/0.1807, allocations: 160.2 kB / 454.5 MB, free: 1.008 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001723/0.1809, allocations: 15.94 kB / 454.5 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.1826, allocations: 0.553 MB / 455.1 MB, free: 388 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1909/0.3735, allocations: 0.701 MB / 455.8 MB, free: 45.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004205/0.374, allocations: 94.06 kB / 455.9 MB, free: 45.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.3742, allocations: 59.05 kB / 455.9 MB, free: 45.48 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3742, allocations: 0 / 455.9 MB, free: 45.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03166/0.4059, allocations: 18.46 MB / 474.4 MB, free: 43.63 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/0.4061, allocations: 200.1 kB / 474.6 MB, free: 43.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/2.102, allocations: 0 / 474.6 MB, free: 43.38 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat