Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008822/0.0008822, allocations: 97.09 kB / 16.99 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000939/0.0009392, allocations: 207.1 kB / 17.9 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.232/0.232, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.000279, allocations: 4 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1188, allocations: 63.46 MB / 481.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0006969/0.1195, allocations: 262.8 kB / 481.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006087/0.1201, allocations: 349.7 kB / 482.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.045e-05/0.1202, allocations: 0 / 482.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.069e-05/0.1202, allocations: 0 / 482.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.359e-05/0.1202, allocations: 0 / 482.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002928/0.1205, allocations: 75.73 kB / 482.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.377e-05/0.1206, allocations: 19.97 kB / 482.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4e-05/0.1206, allocations: 0 / 482.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.723e-05/0.1207, allocations: 19.92 kB / 482.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.445e-05/0.1207, allocations: 19.92 kB / 482.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.1208, allocations: 0 / 482.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001891/0.1209, allocations: 107.8 kB / 482.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.939e-06/0.121, allocations: 4 kB / 482.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.03e-05/0.121, allocations: 29.7 kB / 482.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.1211, allocations: 59.91 kB / 482.4 MB, free: 4.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1211, allocations: 0 / 482.4 MB, free: 4.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1211, allocations: 3.938 kB / 482.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1212, allocations: 0 / 482.4 MB, free: 4.336 MB / 350.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.0003892/0.1216, allocations: 359.5 kB / 482.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.1216, allocations: 8.031 kB / 482.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.283e-05/0.1216, allocations: 38.56 kB / 482.8 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.065e-05/0.1217, allocations: 0 / 482.8 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.1218, allocations: 182.8 kB / 483 MB, free: 3.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.1218, allocations: 0 / 483 MB, free: 3.664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.1218, allocations: 8 kB / 483 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.122, allocations: 53.62 kB / 483.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.122, allocations: 3.984 kB / 483.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.046e-06/0.122, allocations: 0 / 483.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.122, allocations: 4 kB / 483.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.221e-05/0.1221, allocations: 27.98 kB / 483.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000174/0.1223, allocations: 165.6 kB / 483.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.1225, allocations: 62.58 kB / 483.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003262/0.1228, allocations: 125 kB / 483.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.1228, allocations: 30.56 kB / 483.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.1228, allocations: 0 / 483.5 MB, free: 3.102 MB / 350.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.03957/0.1624, allocations: 2.824 MB / 486.3 MB, free: 252 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.1625, allocations: 55.41 kB / 486.4 MB, free: 184 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.522e-05/0.1626, allocations: 101.8 kB / 486.5 MB, free: 72 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.687e-05/0.1626, allocations: 29.7 kB / 486.5 MB, free: 36 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.1627, allocations: 80.14 kB / 486.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.576e-05/0.1628, allocations: 59.11 kB / 486.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.391e-05/0.1628, allocations: 8 kB / 486.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1629, allocations: 323.3 kB / 487 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004065/0.1634, allocations: 191.9 kB / 487.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003701/0.1637, allocations: 183.9 kB / 487.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005187/0.1643, allocations: 215.9 kB / 487.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.1643, allocations: 4 kB / 487.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001028/0.1653, allocations: 0.4918 MB / 488 MB, free: 14.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.1653, allocations: 4 kB / 488 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.1654, allocations: 0 / 488 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.1654, allocations: 4 kB / 488 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003587/0.1657, allocations: 75.94 kB / 488.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.1658, allocations: 4 kB / 488.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.166, allocations: 23.97 kB / 488.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.732e-05/0.166, allocations: 19.98 kB / 488.2 MB, free: 14.36 MB / 366.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.0001239/0.1662, allocations: 125.7 kB / 488.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.43e-05/0.1662, allocations: 7.906 kB / 488.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/0.1675, allocations: 0.5721 MB / 488.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.1675, allocations: 7.984 kB / 488.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1676, allocations: 0 / 488.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1676, allocations: 4 kB / 488.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.1697, allocations: 0.9441 MB / 489.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1697, allocations: 0 / 489.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/0.17, allocations: 75.94 kB / 489.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.044e-05/0.17, allocations: 7.953 kB / 489.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.1701, allocations: 12 kB / 489.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.1701, allocations: 8.172 kB / 489.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.78e-06/0.1701, allocations: 7.984 kB / 489.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009846/0.1711, allocations: 0.5556 MB / 490.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.681e-05/0.1711, allocations: 93.02 kB / 490.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.1712, allocations: 4 kB / 490.6 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.1714, allocations: 35.92 kB / 490.6 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.1714, allocations: 7.984 kB / 490.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.149e-05/0.1715, allocations: 24 kB / 490.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.207e-05/0.1715, allocations: 83.27 kB / 490.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1715, allocations: 0 / 490.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008928/0.1724, allocations: 312 kB / 491 MB, free: 11.31 MB / 366.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.002536/0.175, allocations: 1.625 MB / 492.7 MB, free: 9.617 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008209/0.1758, allocations: 378.2 kB / 493 MB, free: 9.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1758, allocations: 0 / 493 MB, free: 9.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000336/0.1762, allocations: 164.2 kB / 493.2 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001746/0.1764, allocations: 11.94 kB / 493.2 MB, free: 9.078 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.178, allocations: 0.5602 MB / 493.8 MB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.1783, allocations: 0.7007 MB / 494.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003687/0.1787, allocations: 96.88 kB / 494.6 MB, free: 7.625 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.1789, allocations: 59.41 kB / 494.6 MB, free: 7.566 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1789, allocations: 3.938 kB / 494.6 MB, free: 7.562 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0323/0.2112, allocations: 18.44 MB / 0.501 GB, free: 5.289 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001914/0.2115, allocations: 195.5 kB / 0.5012 GB, free: 5.051 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/1.937, allocations: 0 / 0.5012 GB, free: 5.051 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat