Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.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.TestRegStep,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegStep,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegStep",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.00104/0.001041, allocations: 178.4 kB / 8.519 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.198/1.198, allocations: 221.4 MB / 230.3 MB, free: 7.672 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.000917/0.000917, allocations: 87.98 kB / 281.2 MB, free: 5.477 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.1613/0.1613, allocations: 44.15 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1924/0.3537, allocations: 68.02 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.4549, allocations: 61.91 MB / 0.4942 GB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2554/0.7103, allocations: 84.23 MB / 0.5764 GB, free: 12.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.7106, allocations: 60.97 kB / 0.5765 GB, free: 12.45 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.001809/0.7124, allocations: 0.6303 MB / 0.5771 GB, free: 11.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.7124, allocations: 11.94 kB / 0.5771 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.692e-05/0.7125, allocations: 4 kB / 0.5771 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.7126, allocations: 171 kB / 0.5773 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.7126, allocations: 3.938 kB / 0.5773 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.587e-05/0.7126, allocations: 0 / 0.5773 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.553e-05/0.7127, allocations: 7.938 kB / 0.5773 GB, free: 11.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.05e-05/0.7127, allocations: 45.59 kB / 0.5773 GB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.7128, allocations: 0 / 0.5773 GB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/0.7128, allocations: 4 kB / 0.5773 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.7128, allocations: 0 / 0.5773 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.7129, allocations: 126.3 kB / 0.5775 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.7131, allocations: 25.72 kB / 0.5775 GB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.399e-05/0.7131, allocations: 8.859 kB / 0.5775 GB, free: 11.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003226/0.7134, allocations: 125.2 kB / 0.5776 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/0.7135, allocations: 39.44 kB / 0.5776 GB, free: 11.15 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.7135, allocations: 3.938 kB / 0.5777 GB, free: 11.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.001161/0.7146, allocations: 181.4 kB / 0.5778 GB, free: 10.96 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.255e-05/0.7147, allocations: 55.41 kB / 0.5779 GB, free: 10.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.25e-05/0.7147, allocations: 85 kB / 0.578 GB, free: 10.81 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.7147, allocations: 25.7 kB / 0.578 GB, free: 10.78 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.231e-05/0.7148, allocations: 84.14 kB / 0.5781 GB, free: 10.69 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.7148, allocations: 19.7 kB / 0.5781 GB, free: 10.67 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-06/0.7148, allocations: 0 / 0.5781 GB, free: 10.67 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.843e-05/0.7149, allocations: 310.8 kB / 0.5784 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.317e-05/0.715, allocations: 12.12 kB / 0.5784 GB, free: 10.35 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.145e-05/0.715, allocations: 12 kB / 0.5784 GB, free: 10.34 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.128e-05/0.7151, allocations: 28.94 kB / 0.5784 GB, free: 10.31 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.7151, allocations: 0 / 0.5784 GB, free: 10.31 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001309/0.7152, allocations: 57.67 kB / 0.5785 GB, free: 10.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.7152, allocations: 11.98 kB / 0.5785 GB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.7152, allocations: 0 / 0.5785 GB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.7153, allocations: 0 / 0.5785 GB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.7154, allocations: 23.89 kB / 0.5785 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.7154, allocations: 0.7031 kB / 0.5785 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.288e-05/0.7155, allocations: 8 kB / 0.5785 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.7155, allocations: 0 / 0.5785 GB, free: 10.21 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 (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 6.718e-05/0.7156, allocations: 112.9 kB / 0.5786 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.146e-05/0.7156, allocations: 4 kB / 0.5786 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002062/0.7158, allocations: 81.41 kB / 0.5787 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.7158, allocations: 4 kB / 0.5787 GB, free: 9.996 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.7158, allocations: 0 / 0.5787 GB, free: 9.996 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.7159, allocations: 0 / 0.5787 GB, free: 9.996 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000571/0.7164, allocations: 323.8 kB / 0.579 GB, free: 9.633 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.7164, allocations: 3.984 kB / 0.579 GB, free: 9.629 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/0.7166, allocations: 15.98 kB / 0.579 GB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.7166, allocations: 7.969 kB / 0.5791 GB, free: 9.605 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.7166, allocations: 4 kB / 0.5791 GB, free: 9.602 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.7166, allocations: 0 / 0.5791 GB, free: 9.602 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.7166, allocations: 0 / 0.5791 GB, free: 9.602 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001769/0.7168, allocations: 178.2 kB / 0.5792 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002561/0.7171, allocations: 0.5492 MB / 0.5798 GB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.422e-05/0.7171, allocations: 88.91 kB / 0.5799 GB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.7172, allocations: 4 kB / 0.5799 GB, free: 8.719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.7173, allocations: 8 kB / 0.5799 GB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.128e-05/0.7173, allocations: 11.89 kB / 0.5799 GB, free: 8.699 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.7173, allocations: 0 / 0.5799 GB, free: 8.699 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.646e-05/0.7174, allocations: 75.28 kB / 0.5799 GB, free: 8.625 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007931/0.7182, allocations: 12 kB / 0.58 GB, free: 8.613 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 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.0001362/0.7183, allocations: 95.25 kB / 0.58 GB, free: 8.508 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.7184, allocations: 35.92 kB / 0.5801 GB, free: 8.473 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.7184, allocations: 96 / 0.5801 GB, free: 8.473 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.551e-05/0.7185, allocations: 12 kB / 0.5801 GB, free: 8.461 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.7186, allocations: 4 kB / 0.5801 GB, free: 8.457 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003973/0.719, allocations: 96.67 kB / 0.5802 GB, free: 8.336 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002625/0.7193, allocations: 0.6998 MB / 0.5809 GB, free: 7.609 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.7193, allocations: 0 / 0.5809 GB, free: 7.609 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegStep_fmu --startTime=0 --stopTime=1.3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegStep.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat does not exist to compare? outputFormat=mat