Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009785/0.0009782, allocations: 178.3 kB / 8.518 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.152/1.152, allocations: 221.4 MB / 230.3 MB, free: 7.688 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009137/0.0009137, allocations: 88.8 kB / 281.2 MB, free: 5.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1638/0.1638, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1755/0.3394, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09556/0.4349, allocations: 61.91 MB / 0.4942 GB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2447/0.6796, allocations: 84.65 MB / 0.5768 GB, free: 12.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001731/0.6798, allocations: 67.06 kB / 0.5769 GB, free: 12.02 MB / 394.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.005315/0.6852, allocations: 1.834 MB / 0.5787 GB, free: 10.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.6852, allocations: 14.67 kB / 0.5787 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.758e-05/0.6852, allocations: 3.906 kB / 0.5787 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.6854, allocations: 171 kB / 0.5789 GB, free: 9.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.6854, allocations: 0.75 kB / 0.5789 GB, free: 9.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.6854, allocations: 7.984 kB / 0.5789 GB, free: 9.922 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.892e-05/0.6855, allocations: 23.91 kB / 0.5789 GB, free: 9.898 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.515e-05/0.6856, allocations: 45.69 kB / 0.579 GB, free: 9.848 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.6856, allocations: 3.938 kB / 0.579 GB, free: 9.844 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.617e-06/0.6856, allocations: 0 / 0.579 GB, free: 9.844 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.6856, allocations: 4 kB / 0.579 GB, free: 9.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.6858, allocations: 154.1 kB / 0.5791 GB, free: 9.652 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.6859, allocations: 53.64 kB / 0.5792 GB, free: 9.598 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.019e-05/0.686, allocations: 20.86 kB / 0.5792 GB, free: 9.574 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002345/0.6862, allocations: 113.1 kB / 0.5793 GB, free: 9.445 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.6863, allocations: 34.56 kB / 0.5793 GB, free: 9.402 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.6863, allocations: 0 / 0.5793 GB, free: 9.402 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.03964/0.7259, allocations: 2.167 MB / 0.5814 GB, free: 7.199 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.726, allocations: 55.31 kB / 0.5815 GB, free: 7.133 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.066e-05/0.7261, allocations: 96.94 kB / 0.5816 GB, free: 7.031 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.7261, allocations: 25.7 kB / 0.5816 GB, free: 7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.293e-05/0.7261, allocations: 84.14 kB / 0.5817 GB, free: 6.914 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.945e-05/0.7262, allocations: 63.09 kB / 0.5817 GB, free: 6.852 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.7262, allocations: 192 / 0.5817 GB, free: 6.852 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.7264, allocations: 314.8 kB / 0.582 GB, free: 6.535 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.7266, allocations: 147.9 kB / 0.5822 GB, free: 6.391 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/0.7268, allocations: 140 kB / 0.5823 GB, free: 6.254 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005513/0.7274, allocations: 194.8 kB / 0.5825 GB, free: 6.066 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.7274, allocations: 4 kB / 0.5825 GB, free: 6.062 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009195/0.7283, allocations: 417.4 kB / 0.5829 GB, free: 5.648 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.7283, allocations: 12 kB / 0.5829 GB, free: 5.637 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.7283, allocations: 0 / 0.5829 GB, free: 5.637 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.7283, allocations: 3.906 kB / 0.5829 GB, free: 5.633 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004523/0.7288, allocations: 83.88 kB / 0.583 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.7288, allocations: 0 / 0.583 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002414/0.7291, allocations: 23.98 kB / 0.583 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.433e-05/0.7291, allocations: 15.98 kB / 0.583 GB, free: 5.512 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.0001032/0.7292, allocations: 105 kB / 0.5831 GB, free: 5.402 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.54e-05/0.7293, allocations: 7.906 kB / 0.5832 GB, free: 5.395 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.7306, allocations: 0.5408 MB / 0.5837 GB, free: 4.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.7307, allocations: 0 / 0.5837 GB, free: 4.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.7307, allocations: 7.906 kB / 0.5837 GB, free: 4.832 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.7307, allocations: 0 / 0.5837 GB, free: 4.832 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00209/0.7328, allocations: 0.8508 MB / 0.5845 GB, free: 3.918 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.7328, allocations: 4 kB / 0.5845 GB, free: 3.914 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003424/0.7331, allocations: 75.94 kB / 0.5846 GB, free: 3.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.7332, allocations: 3.938 kB / 0.5846 GB, free: 3.836 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.7332, allocations: 24.05 kB / 0.5846 GB, free: 3.812 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.7332, allocations: 7.938 kB / 0.5846 GB, free: 3.805 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.7332, allocations: 0 / 0.5846 GB, free: 3.805 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008458/0.7341, allocations: 493.1 kB / 0.5851 GB, free: 3.254 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009293/0.735, allocations: 0.8506 MB / 0.5859 GB, free: 2.328 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.7351, allocations: 88.92 kB / 0.586 GB, free: 2.223 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.7351, allocations: 0 / 0.586 GB, free: 2.223 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.7354, allocations: 31.97 kB / 0.586 GB, free: 2.191 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.213e-05/0.7354, allocations: 15.98 kB / 0.5861 GB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-05/0.7354, allocations: 15.98 kB / 0.5861 GB, free: 2.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.473e-05/0.7355, allocations: 83.28 kB / 0.5862 GB, free: 2.078 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001429/0.7369, allocations: 343.6 kB / 0.5865 GB, free: 1.742 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.001343/0.7382, allocations: 266.8 kB / 0.5867 GB, free: 1.469 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004717/0.7387, allocations: 263.3 kB / 0.587 GB, free: 1.215 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.7387, allocations: 0 / 0.587 GB, free: 1.215 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.7389, allocations: 119.8 kB / 0.5871 GB, free: 1.098 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001674/0.7391, allocations: 10.09 kB / 0.5871 GB, free: 1.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.7404, allocations: 364.1 kB / 0.5875 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004852/0.7409, allocations: 0.7545 MB / 0.5882 GB, free: 15.91 MB / 410.7 MB Notification: Performance of SimCode: time 4.21e-07/0.7409, allocations: 4 kB / 0.5882 GB, free: 15.91 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat