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.001041/0.001041, allocations: 96.42 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1961/0.1961, allocations: 45.91 MB / 344.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002529/0.000253, allocations: 15.94 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1015, allocations: 63.46 MB / 481.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005456/0.1021, allocations: 254.9 kB / 481.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005938/0.1027, allocations: 345.8 kB / 482.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.409e-05/0.1027, allocations: 0 / 482.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.189e-05/0.1027, allocations: 7.875 kB / 482.2 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.794e-05/0.1028, allocations: 0 / 482.2 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003106/0.1031, allocations: 71.8 kB / 482.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.322e-05/0.1031, allocations: 27.92 kB / 482.3 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.389e-05/0.1032, allocations: 4 kB / 482.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.978e-05/0.1032, allocations: 11.98 kB / 482.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.18e-05/0.1033, allocations: 19.91 kB / 482.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.1033, allocations: 4 kB / 482.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001904/0.1035, allocations: 103.9 kB / 482.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.263e-05/0.1035, allocations: 15.92 kB / 482.5 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.074e-05/0.1035, allocations: 25.7 kB / 482.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.1037, allocations: 63.91 kB / 482.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1037, allocations: 0 / 482.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1037, allocations: 0 / 482.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.1037, allocations: 0 / 482.6 MB, free: 4.32 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.0003371/0.104, allocations: 355.5 kB / 482.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.1041, allocations: 12.03 kB / 482.9 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.1041, allocations: 34.56 kB / 483 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.2e-05/0.1041, allocations: 7.938 kB / 483 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.984e-05/0.1042, allocations: 174.9 kB / 483.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.1043, allocations: 8 kB / 483.2 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.1043, allocations: 11.98 kB / 483.2 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.1044, allocations: 49.62 kB / 483.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.1044, allocations: 0 / 483.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.1044, allocations: 4 kB / 483.2 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.1044, allocations: 7.984 kB / 483.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.422e-05/0.1045, allocations: 27.92 kB / 483.2 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001572/0.1047, allocations: 169.6 kB / 483.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.1049, allocations: 54.55 kB / 483.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.548e-05/0.1049, allocations: 29.08 kB / 483.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002423/0.1052, allocations: 121 kB / 483.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.1052, allocations: 34.56 kB / 483.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.233e-06/0.1052, allocations: 0 / 483.6 MB, free: 3.051 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.03536/0.1406, allocations: 2.821 MB / 486.5 MB, free: 200 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.1407, allocations: 55.41 kB / 486.5 MB, free: 132 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.327e-05/0.1407, allocations: 101.8 kB / 486.6 MB, free: 20 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.1408, allocations: 25.7 kB / 486.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.099e-05/0.1408, allocations: 92.14 kB / 486.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.375e-05/0.1409, allocations: 63.08 kB / 486.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.1409, allocations: 4 kB / 486.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.148e-05/0.141, allocations: 318.8 kB / 487.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003968/0.1414, allocations: 191.9 kB / 487.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003735/0.1418, allocations: 195.9 kB / 487.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005171/0.1423, allocations: 214 kB / 487.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.1423, allocations: 0 / 487.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001019/0.1434, allocations: 497.3 kB / 488.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.1434, allocations: 7.938 kB / 488.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1434, allocations: 0 / 488.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.1434, allocations: 4 kB / 488.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.1438, allocations: 75.94 kB / 488.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.1438, allocations: 0 / 488.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001961/0.144, allocations: 31.98 kB / 488.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.704e-05/0.1441, allocations: 19.94 kB / 488.3 MB, free: 14.29 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.0001079/0.1442, allocations: 121.8 kB / 488.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.1442, allocations: 11.89 kB / 488.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001289/0.1455, allocations: 0.5712 MB / 489 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1455, allocations: 0 / 489 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1455, allocations: 4 kB / 489 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.1455, allocations: 0 / 489 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00201/0.1476, allocations: 0.944 MB / 490 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1476, allocations: 4 kB / 490 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.1479, allocations: 75.89 kB / 490.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.1479, allocations: 4 kB / 490.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/0.1479, allocations: 16.17 kB / 490.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.1479, allocations: 7.938 kB / 490.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1479, allocations: 4 kB / 490.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009164/0.1488, allocations: 488.4 kB / 490.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.599e-05/0.1489, allocations: 89.48 kB / 490.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.596e-05/0.1489, allocations: 4 kB / 490.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.1491, allocations: 39.86 kB / 490.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.1492, allocations: 11.98 kB / 490.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.1492, allocations: 19.98 kB / 490.7 MB, free: 11.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.53e-05/0.1493, allocations: 83.22 kB / 490.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1493, allocations: 0 / 490.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008504/0.1501, allocations: 324 kB / 491.1 MB, free: 11.36 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.002308/0.1524, allocations: 1.147 MB / 492.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008074/0.1533, allocations: 370.4 kB / 492.6 MB, free: 9.809 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1533, allocations: 3.938 kB / 492.6 MB, free: 9.805 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003663/0.1536, allocations: 164.2 kB / 492.8 MB, free: 9.645 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.1539, allocations: 8 kB / 492.8 MB, free: 9.637 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.1555, allocations: 0.5564 MB / 493.4 MB, free: 9.016 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.1558, allocations: 0.7006 MB / 494.1 MB, free: 8.285 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003757/0.1562, allocations: 92.89 kB / 494.1 MB, free: 8.191 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001959/0.1564, allocations: 59.39 kB / 494.2 MB, free: 8.133 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1564, allocations: 0 / 494.2 MB, free: 8.133 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0292/0.1856, allocations: 18.46 MB / 0.5007 GB, free: 5.832 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/0.1858, allocations: 205.5 kB / 0.5009 GB, free: 5.594 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/1.911, allocations: 0 / 0.5009 GB, free: 5.594 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