Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.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.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",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.001008/0.001008, allocations: 174.9 kB / 8.518 MB, free: 1.848 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.18/1.18, allocations: 221.4 MB / 230.3 MB, free: 7.648 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.00096/0.00096, allocations: 92.11 kB / 281.2 MB, free: 5.465 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.1625/0.1625, allocations: 44.14 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2007/0.3633, allocations: 68.02 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.471, allocations: 61.91 MB / 0.4942 GB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2682/0.7393, allocations: 85.72 MB / 0.5779 GB, free: 11.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001462/0.7395, allocations: 63.97 kB / 0.5779 GB, free: 10.98 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.01792/0.7574, allocations: 6.322 MB / 0.5841 GB, free: 4.621 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.7575, allocations: 15.94 kB / 0.5841 GB, free: 4.605 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.661e-05/0.7575, allocations: 7.906 kB / 0.5841 GB, free: 4.598 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.206e-05/0.7576, allocations: 159.9 kB / 0.5843 GB, free: 4.402 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-06/0.7576, allocations: 0 / 0.5843 GB, free: 4.402 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.7576, allocations: 3.984 kB / 0.5843 GB, free: 4.398 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.22e-05/0.7577, allocations: 0 / 0.5843 GB, free: 4.398 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.557e-05/0.7577, allocations: 33.64 kB / 0.5843 GB, free: 4.359 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.992e-06/0.7577, allocations: 0 / 0.5843 GB, free: 4.359 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-06/0.7577, allocations: 0 / 0.5843 GB, free: 4.359 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.7577, allocations: 7.891 kB / 0.5843 GB, free: 4.352 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.979e-05/0.7578, allocations: 126.2 kB / 0.5845 GB, free: 4.191 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.151e-05/0.7579, allocations: 22.55 kB / 0.5845 GB, free: 4.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.324e-05/0.7579, allocations: 8.859 kB / 0.5845 GB, free: 4.148 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.821e-06/0.7579, allocations: 0 / 0.5845 GB, free: 4.148 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.758, allocations: 60.25 kB / 0.5845 GB, free: 4.074 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.758, allocations: 4.062 kB / 0.5845 GB, free: 4.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001042/0.7581, allocations: 29.64 kB / 0.5846 GB, free: 4.035 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.7581, allocations: 85.14 kB / 0.5847 GB, free: 3.934 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.264e-05/0.7582, allocations: 85 kB / 0.5847 GB, free: 3.844 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.7582, allocations: 25.7 kB / 0.5848 GB, free: 3.812 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.006e-05/0.7582, allocations: 80.14 kB / 0.5848 GB, free: 3.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.419e-05/0.7582, allocations: 3.906 kB / 0.5848 GB, free: 3.727 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-06/0.7582, allocations: 0 / 0.5848 GB, free: 3.727 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.36e-05/0.7583, allocations: 314.8 kB / 0.5851 GB, free: 3.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.5e-06/0.7583, allocations: 0 / 0.5851 GB, free: 3.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.847e-06/0.7583, allocations: 8 kB / 0.5852 GB, free: 3.402 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.125e-05/0.7583, allocations: 0 / 0.5852 GB, free: 3.402 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.7584, allocations: 0 / 0.5852 GB, free: 3.402 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.912e-05/0.7584, allocations: 33.69 kB / 0.5852 GB, free: 3.363 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.7584, allocations: 5.094 kB / 0.5852 GB, free: 3.359 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.7584, allocations: 4 kB / 0.5852 GB, free: 3.355 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.7584, allocations: 0 / 0.5852 GB, free: 3.355 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.295e-06/0.7585, allocations: 3.938 kB / 0.5852 GB, free: 3.352 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.076e-06/0.7585, allocations: 3.938 kB / 0.5852 GB, free: 3.348 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.618e-06/0.7585, allocations: 96 / 0.5852 GB, free: 3.348 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.7585, allocations: 4 kB / 0.5852 GB, free: 3.344 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 6.86e-05/0.7586, allocations: 134.6 kB / 0.5853 GB, free: 3.199 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.186e-06/0.7586, allocations: 0 / 0.5853 GB, free: 3.199 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.324e-05/0.7586, allocations: 10.94 kB / 0.5853 GB, free: 3.188 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.7586, allocations: 0 / 0.5853 GB, free: 3.188 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.7586, allocations: 4 kB / 0.5853 GB, free: 3.184 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.7586, allocations: 0 / 0.5853 GB, free: 3.184 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.507e-05/0.7587, allocations: 130.2 kB / 0.5855 GB, free: 3.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.7587, allocations: 0 / 0.5855 GB, free: 3.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.7587, allocations: 4 kB / 0.5855 GB, free: 3.016 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.7587, allocations: 0 / 0.5855 GB, free: 3.016 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-06/0.7587, allocations: 0 / 0.5855 GB, free: 3.016 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.7587, allocations: 0 / 0.5855 GB, free: 3.016 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.7587, allocations: 0 / 0.5855 GB, free: 3.016 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.204e-05/0.7588, allocations: 61.12 kB / 0.5855 GB, free: 2.938 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001465/0.7589, allocations: 453.4 kB / 0.586 GB, free: 2.473 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.924e-05/0.759, allocations: 77.11 kB / 0.586 GB, free: 2.379 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.145e-05/0.759, allocations: 0 / 0.586 GB, free: 2.379 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.205e-06/0.759, allocations: 3.938 kB / 0.586 GB, free: 2.375 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.212e-05/0.759, allocations: 4 kB / 0.586 GB, free: 2.371 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.759, allocations: 3.906 kB / 0.586 GB, free: 2.367 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.04e-05/0.7591, allocations: 75.28 kB / 0.5861 GB, free: 2.293 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007667/0.7598, allocations: 4.031 kB / 0.5861 GB, free: 2.289 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 7.92e-05/0.7599, allocations: 95.25 kB / 0.5862 GB, free: 2.184 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 5.248e-05/0.76, allocations: 33.69 kB / 0.5862 GB, free: 2.145 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.76, allocations: 0 / 0.5862 GB, free: 2.145 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.694e-05/0.76, allocations: 29.7 kB / 0.5863 GB, free: 2.109 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.452e-05/0.7601, allocations: 4 kB / 0.5863 GB, free: 2.105 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001075/0.7602, allocations: 44.02 kB / 0.5863 GB, free: 2.039 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.7605, allocations: 0.6842 MB / 0.587 GB, free: 1.328 MB / 394.7 MB Notification: Performance of SimCode: time 3.8e-07/0.7605, allocations: 7.938 kB / 0.587 GB, free: 1.32 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat does not exist to compare? outputFormat=mat