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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001622/0.001622, allocations: 184 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.482/1.482, allocations: 205.2 MB / 218.9 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009184/0.0009183, allocations: 91.8 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3501/0.3501, allocations: 43.47 MB / 358.6 MB, free: 52.29 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.713e-05/4.732e-05, allocations: 4 kB / 425.4 MB, free: 8.797 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1394, allocations: 58.85 MB / 484.3 MB, free: 13.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4658/0.6053, allocations: 84.27 MB / 0.5552 GB, free: 4.672 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.6056, allocations: 63.97 kB / 0.5553 GB, free: 4.609 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00448/0.6101, allocations: 1.77 MB / 0.557 GB, free: 2.859 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.6101, allocations: 0 / 0.557 GB, free: 2.859 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.6101, allocations: 0 / 0.557 GB, free: 2.859 MB / 378.7 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.000241/0.6104, allocations: 372.4 kB / 0.5573 GB, free: 2.453 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.6104, allocations: 8.031 kB / 0.5574 GB, free: 2.445 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.97e-05/0.6104, allocations: 31.12 kB / 0.5574 GB, free: 2.406 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.655e-05/0.6105, allocations: 9.625 kB / 0.5574 GB, free: 2.398 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.843e-05/0.6106, allocations: 174 kB / 0.5576 GB, free: 2.191 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.6106, allocations: 2.062 kB / 0.5576 GB, free: 2.191 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.011e-05/0.6106, allocations: 4 kB / 0.5576 GB, free: 2.188 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.6107, allocations: 62.97 kB / 0.5576 GB, free: 2.121 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.6108, allocations: 0 / 0.5576 GB, free: 2.121 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.6108, allocations: 0 / 0.5576 GB, free: 2.121 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.6108, allocations: 4 kB / 0.5576 GB, free: 2.117 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.254e-05/0.6109, allocations: 27.95 kB / 0.5577 GB, free: 2.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001471/0.611, allocations: 173.6 kB / 0.5578 GB, free: 1.871 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.6112, allocations: 62.59 kB / 0.5579 GB, free: 1.801 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.066e-05/0.6113, allocations: 20.86 kB / 0.5579 GB, free: 1.777 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002022/0.6115, allocations: 105.1 kB / 0.558 GB, free: 1.656 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.6115, allocations: 42.56 kB / 0.558 GB, free: 1.605 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/0.6115, allocations: 0 / 0.558 GB, free: 1.605 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.04548/0.657, allocations: 2.064 MB / 0.5601 GB, free: 15.52 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.6571, allocations: 55.34 kB / 0.5601 GB, free: 15.45 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.6572, allocations: 100.8 kB / 0.5602 GB, free: 15.35 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.417e-05/0.6573, allocations: 25.7 kB / 0.5602 GB, free: 15.32 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.911e-05/0.6574, allocations: 84.14 kB / 0.5603 GB, free: 15.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.842e-05/0.6575, allocations: 63.09 kB / 0.5604 GB, free: 15.17 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.6575, allocations: 3.281 kB / 0.5604 GB, free: 15.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.6576, allocations: 326.8 kB / 0.5607 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003155/0.658, allocations: 140 kB / 0.5608 GB, free: 14.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.6583, allocations: 144 kB / 0.561 GB, free: 14.57 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005485/0.6589, allocations: 161 kB / 0.5611 GB, free: 14.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.6589, allocations: 0 / 0.5611 GB, free: 14.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001094/0.66, allocations: 392.9 kB / 0.5615 GB, free: 14.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.66, allocations: 4 kB / 0.5615 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.66, allocations: 3.984 kB / 0.5615 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.6601, allocations: 0 / 0.5615 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005346/0.6606, allocations: 83.88 kB / 0.5616 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.6606, allocations: 3.953 kB / 0.5616 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.6609, allocations: 27.98 kB / 0.5616 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.466e-05/0.661, allocations: 15.98 kB / 0.5616 GB, free: 13.89 MB / 394.7 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 () * 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.0001497/0.6612, allocations: 117.9 kB / 0.5617 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.91e-05/0.6612, allocations: 7.906 kB / 0.5617 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001447/0.6627, allocations: 477.8 kB / 0.5622 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.6627, allocations: 4 kB / 0.5622 GB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.6627, allocations: 0 / 0.5622 GB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.279e-06/0.6627, allocations: 0 / 0.5622 GB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002641/0.6654, allocations: 0.8442 MB / 0.563 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.6654, allocations: 8.188 kB / 0.563 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003953/0.6658, allocations: 79.81 kB / 0.5631 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.395e-05/0.6659, allocations: 4 kB / 0.5631 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.105e-05/0.6659, allocations: 19.81 kB / 0.5631 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.057e-06/0.6659, allocations: 5.688 kB / 0.5631 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.6659, allocations: 4 kB / 0.5631 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009715/0.6669, allocations: 462.7 kB / 0.5636 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.21e-05/0.667, allocations: 88.97 kB / 0.5637 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.712e-05/0.6671, allocations: 11.98 kB / 0.5637 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002913/0.6674, allocations: 23.98 kB / 0.5637 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.6674, allocations: 19.92 kB / 0.5637 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.855e-05/0.6675, allocations: 15.98 kB / 0.5637 GB, free: 11.56 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.912e-05/0.6676, allocations: 83.28 kB / 0.5638 GB, free: 11.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6676, allocations: 0 / 0.5638 GB, free: 11.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001436/0.669, allocations: 347.7 kB / 0.5641 GB, free: 11.14 MB / 394.7 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 () * 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.003371/0.6724, allocations: 1.573 MB / 0.5657 GB, free: 9.504 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008115/0.6732, allocations: 267.9 kB / 0.5659 GB, free: 9.242 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.6733, allocations: 0 / 0.5659 GB, free: 9.242 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002987/0.6736, allocations: 120.7 kB / 0.566 GB, free: 9.125 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.6738, allocations: 7.984 kB / 0.5661 GB, free: 9.117 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.6762, allocations: 485.3 kB / 0.5665 GB, free: 8.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.6766, allocations: 0.6977 MB / 0.5672 GB, free: 7.863 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006054/0.6772, allocations: 97.44 kB / 0.5673 GB, free: 7.762 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/0.6775, allocations: 55.41 kB / 0.5673 GB, free: 7.707 MB / 394.7 MB Notification: Performance of SimCode: time 1.213e-06/0.6775, allocations: 0 / 0.5673 GB, free: 7.707 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03176/0.7093, allocations: 8.62 MB / 0.5758 GB, free: 15.16 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/0.7096, allocations: 181.5 kB / 0.5759 GB, free: 14.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/2.4, allocations: 0 / 0.5759 GB, free: 14.93 MB / 410.7 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) 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