Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.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.TestRegRootDerivative,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative",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.001663/0.001662, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.259/2.259, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001523/0.001523, allocations: 89.98 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4147/0.4147, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.353e-05/3.363e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1185, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5908/0.7093, allocations: 83.9 MB / 0.5548 GB, free: 3.586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/0.7096, allocations: 71.67 kB / 0.5549 GB, free: 3.547 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002395/0.7121, allocations: 0.5625 MB / 0.5554 GB, free: 3.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.7121, allocations: 0 / 0.5554 GB, free: 3.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.7122, allocations: 0 / 0.5554 GB, free: 3.02 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003357/0.7125, allocations: 326.7 kB / 0.5558 GB, free: 2.664 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/0.7126, allocations: 12.03 kB / 0.5558 GB, free: 2.652 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.7126, allocations: 30.56 kB / 0.5558 GB, free: 2.613 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.128e-05/0.7127, allocations: 0 / 0.5558 GB, free: 2.613 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.7128, allocations: 171 kB / 0.556 GB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.7129, allocations: 3.938 kB / 0.556 GB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.7129, allocations: 0 / 0.556 GB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/0.7131, allocations: 58.05 kB / 0.556 GB, free: 2.344 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.7131, allocations: 0 / 0.556 GB, free: 2.344 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.7131, allocations: 0 / 0.556 GB, free: 2.344 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.7131, allocations: 4 kB / 0.556 GB, free: 2.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.824e-05/0.7132, allocations: 15.55 kB / 0.556 GB, free: 2.328 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003811/0.7136, allocations: 316.2 kB / 0.5563 GB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.738e-05/0.7137, allocations: 33.89 kB / 0.5564 GB, free: 1.934 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.469e-05/0.7138, allocations: 12.55 kB / 0.5564 GB, free: 1.922 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.7139, allocations: 4 kB / 0.5564 GB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.7139, allocations: 30.56 kB / 0.5564 GB, free: 1.879 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 2.815e-06/0.7139, allocations: 0 / 0.5564 GB, free: 1.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002412/0.7142, allocations: 49.62 kB / 0.5565 GB, free: 1.828 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.7142, allocations: 55.41 kB / 0.5565 GB, free: 1.762 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.419e-05/0.7143, allocations: 96.61 kB / 0.5566 GB, free: 1.664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.7143, allocations: 25.7 kB / 0.5566 GB, free: 1.633 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.895e-05/0.7144, allocations: 154.5 kB / 0.5568 GB, free: 1.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.7144, allocations: 11.81 kB / 0.5568 GB, free: 1.469 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.374e-06/0.7145, allocations: 6.984 kB / 0.5568 GB, free: 1.469 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.349e-05/0.7146, allocations: 314.8 kB / 0.5571 GB, free: 1.152 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.561e-05/0.7146, allocations: 4 kB / 0.5571 GB, free: 1.148 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.835e-05/0.7147, allocations: 25.03 kB / 0.5571 GB, free: 1.121 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.653e-05/0.7147, allocations: 11.92 kB / 0.5571 GB, free: 1.113 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.7147, allocations: 0 / 0.5571 GB, free: 1.113 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000171/0.7149, allocations: 52.69 kB / 0.5572 GB, free: 1.059 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.715, allocations: 7.938 kB / 0.5572 GB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.715, allocations: 4 kB / 0.5572 GB, free: 1.047 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.715, allocations: 0 / 0.5572 GB, free: 1.047 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.7152, allocations: 8 kB / 0.5572 GB, free: 1.039 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.7152, allocations: 4.891 kB / 0.5572 GB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.121e-05/0.7153, allocations: 7.312 kB / 0.5572 GB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.7153, allocations: 0 / 0.5572 GB, free: 1.031 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.556e-05/0.7154, allocations: 112.9 kB / 0.5573 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.112e-05/0.7155, allocations: 0 / 0.5573 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002105/0.7157, allocations: 67.12 kB / 0.5574 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.7157, allocations: 3.984 kB / 0.5574 GB, free: 0.8398 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.7157, allocations: 0 / 0.5574 GB, free: 0.8398 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.7157, allocations: 0 / 0.5574 GB, free: 0.8398 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.716, allocations: 169.5 kB / 0.5576 GB, free: 0.6289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.716, allocations: 0 / 0.5576 GB, free: 0.6289 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.996e-05/0.7161, allocations: 10.69 kB / 0.5576 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.7162, allocations: 0 / 0.5576 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.7162, allocations: 3.625 kB / 0.5576 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.7162, allocations: 0 / 0.5576 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.7162, allocations: 3.984 kB / 0.5576 GB, free: 0.6172 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001791/0.7164, allocations: 146.5 kB / 0.5577 GB, free: 476 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.989e-05/0.7165, allocations: 89.09 kB / 0.5578 GB, free: 368 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.7165, allocations: 0 / 0.5578 GB, free: 368 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.7166, allocations: 0 / 0.5578 GB, free: 368 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.287e-05/0.7167, allocations: 6.688 kB / 0.5578 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.426e-05/0.7167, allocations: 3.938 kB / 0.5578 GB, free: 360 kB / 362.7 MB Notification: Performance of sorting global known variables: time 3.406e-05/0.7168, allocations: 75.28 kB / 0.5579 GB, free: 284 kB / 362.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.7168, allocations: 0 / 0.5579 GB, free: 284 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005363/0.7174, allocations: 8 kB / 0.5579 GB, free: 276 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (5): * Single equations (assignments): 5 * 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.000737/0.7181, allocations: 0.6918 MB / 0.5586 GB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001935/0.7184, allocations: 27 kB / 0.5586 GB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.036e-06/0.7184, allocations: 4 kB / 0.5586 GB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.08e-05/0.7185, allocations: 11 kB / 0.5586 GB, free: 15.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.7188, allocations: 5.141 kB / 0.5586 GB, free: 15.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007073/0.7195, allocations: 135.3 kB / 0.5587 GB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004319/0.72, allocations: 0.677 MB / 0.5594 GB, free: 14.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.933e-05/0.7201, allocations: 15.38 kB / 0.5594 GB, free: 14.65 MB / 378.7 MB Notification: Performance of SimCode: time 1.323e-06/0.7201, allocations: 0 / 0.5594 GB, free: 14.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.348/3.069, allocations: 0.7613 MB / 0.5602 GB, free: 13.89 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat does not exist to compare? outputFormat=mat