Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",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.001132/0.001132, allocations: 178.3 kB / 8.516 MB, free: 1.832 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.42/1.42, allocations: 221.4 MB / 230.3 MB, free: 7.793 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.001514/0.001514, allocations: 99.72 kB / 281.2 MB, free: 5.559 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.2306/0.2306, allocations: 44.15 MB / 376.1 MB, free: 3.289 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2894/0.5201, allocations: 68.02 MB / 444.1 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.6793, allocations: 61.91 MB / 0.4942 GB, free: 1.598 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4432/1.123, allocations: 85.03 MB / 0.5772 GB, free: 11.72 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003578/1.123, allocations: 58.59 kB / 0.5773 GB, free: 11.7 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.005527/1.129, allocations: 1.708 MB / 0.5789 GB, free: 9.988 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/1.129, allocations: 11.94 kB / 0.5789 GB, free: 9.977 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.398e-05/1.129, allocations: 3.906 kB / 0.5789 GB, free: 9.973 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/1.129, allocations: 159.1 kB / 0.5791 GB, free: 9.777 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/1.129, allocations: 0 / 0.5791 GB, free: 9.777 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-06/1.129, allocations: 3.938 kB / 0.5791 GB, free: 9.773 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.09e-05/1.129, allocations: 7.938 kB / 0.5791 GB, free: 9.766 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.944e-05/1.129, allocations: 25.7 kB / 0.5791 GB, free: 9.734 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/1.129, allocations: 4 kB / 0.5791 GB, free: 9.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/1.129, allocations: 3.984 kB / 0.5791 GB, free: 9.727 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.996e-06/1.129, allocations: 7.891 kB / 0.5791 GB, free: 9.719 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001859/1.129, allocations: 126.2 kB / 0.5793 GB, free: 9.559 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.84e-05/1.129, allocations: 14.58 kB / 0.5793 GB, free: 9.535 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.192e-05/1.129, allocations: 8.859 kB / 0.5793 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/1.129, allocations: 0 / 0.5793 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.893e-05/1.13, allocations: 64.36 kB / 0.5793 GB, free: 9.445 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 8.466e-06/1.13, allocations: 0 / 0.5793 GB, free: 9.445 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.000261/1.13, allocations: 37.62 kB / 0.5794 GB, free: 9.402 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.97e-05/1.13, allocations: 77.11 kB / 0.5795 GB, free: 9.309 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.196e-05/1.13, allocations: 85 kB / 0.5795 GB, free: 9.219 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/1.13, allocations: 25.7 kB / 0.5796 GB, free: 9.188 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.278e-05/1.13, allocations: 80.14 kB / 0.5796 GB, free: 9.105 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.333e-05/1.13, allocations: 3.906 kB / 0.5796 GB, free: 9.102 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/1.13, allocations: 8.031 kB / 0.5797 GB, free: 9.094 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/1.13, allocations: 314.8 kB / 0.58 GB, free: 8.777 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.734e-06/1.13, allocations: 0 / 0.58 GB, free: 8.777 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.891e-06/1.13, allocations: 0 / 0.58 GB, free: 8.777 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.982e-05/1.13, allocations: 0 / 0.58 GB, free: 8.777 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/1.13, allocations: 6.844 kB / 0.58 GB, free: 8.773 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.001e-05/1.13, allocations: 37.62 kB / 0.58 GB, free: 8.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/1.13, allocations: 4.781 kB / 0.58 GB, free: 8.727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/1.13, allocations: 0 / 0.58 GB, free: 8.727 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/1.13, allocations: 4.094 kB / 0.58 GB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.603e-06/1.13, allocations: 0 / 0.58 GB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/1.13, allocations: 0 / 0.58 GB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.269e-05/1.131, allocations: 4 kB / 0.58 GB, free: 8.719 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/1.131, allocations: 0 / 0.58 GB, free: 8.719 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: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001092/1.131, allocations: 130.6 kB / 0.5801 GB, free: 8.578 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.034e-05/1.131, allocations: 0 / 0.5801 GB, free: 8.578 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.557e-05/1.131, allocations: 10.95 kB / 0.5801 GB, free: 8.566 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/1.131, allocations: 0 / 0.5801 GB, free: 8.566 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/1.131, allocations: 4 kB / 0.5801 GB, free: 8.562 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/1.131, allocations: 3.984 kB / 0.5802 GB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/1.131, allocations: 126.2 kB / 0.5803 GB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/1.131, allocations: 0 / 0.5803 GB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/1.131, allocations: 0 / 0.5803 GB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/1.131, allocations: 0 / 0.5803 GB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/1.131, allocations: 7.938 kB / 0.5803 GB, free: 8.391 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/1.131, allocations: 4 kB / 0.5803 GB, free: 8.387 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.131, allocations: 0 / 0.5803 GB, free: 8.387 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001187/1.131, allocations: 69.06 kB / 0.5803 GB, free: 8.301 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001949/1.131, allocations: 445.4 kB / 0.5808 GB, free: 7.844 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/1.131, allocations: 77.11 kB / 0.5808 GB, free: 7.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/1.131, allocations: 0 / 0.5808 GB, free: 7.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-06/1.131, allocations: 3.828 kB / 0.5808 GB, free: 7.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.715e-05/1.131, allocations: 4.062 kB / 0.5809 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/1.131, allocations: 7.906 kB / 0.5809 GB, free: 7.738 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.587e-05/1.131, allocations: 75.28 kB / 0.5809 GB, free: 7.664 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008828/1.132, allocations: 39.97 kB / 0.581 GB, free: 7.625 MB / 394.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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000591/1.133, allocations: 270.3 kB / 0.5812 GB, free: 7.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.1e-05/1.133, allocations: 29.7 kB / 0.5813 GB, free: 7.375 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/1.133, allocations: 0 / 0.5813 GB, free: 7.375 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.898e-05/1.133, allocations: 29.77 kB / 0.5813 GB, free: 7.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001025/1.133, allocations: 6.391 kB / 0.5813 GB, free: 7.336 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001674/1.133, allocations: 44.08 kB / 0.5813 GB, free: 7.27 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/1.134, allocations: 0.6802 MB / 0.582 GB, free: 6.562 MB / 394.7 MB Notification: Performance of SimCode: time 4.71e-07/1.134, allocations: 4 kB / 0.582 GB, free: 6.559 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat does not exist to compare? outputFormat=mat