Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.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.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",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.00137/0.00137, allocations: 181.9 kB / 8.521 MB, free: 1.824 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.174/1.174, allocations: 221.4 MB / 230.3 MB, free: 7.695 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.0009004/0.0009004, allocations: 86.36 kB / 281.2 MB, free: 5.516 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.1594/0.1594, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1792/0.3387, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09558/0.4343, allocations: 61.91 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2681/0.7025, allocations: 86.82 MB / 0.579 GB, free: 9.953 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/0.7027, allocations: 63.97 kB / 0.579 GB, free: 9.891 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 4.577/5.28, allocations: 1.659 GB / 2.238 GB, free: 136.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/5.28, allocations: 15.75 kB / 2.238 GB, free: 136.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.94e-05/5.28, allocations: 0 / 2.238 GB, free: 136.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.395e-05/5.28, allocations: 159.1 kB / 2.238 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/5.28, allocations: 3.984 kB / 2.238 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/5.28, allocations: 0 / 2.238 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.015e-05/5.28, allocations: 3.969 kB / 2.238 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.231e-05/5.28, allocations: 30.7 kB / 2.238 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/5.28, allocations: 3.875 kB / 2.238 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/5.28, allocations: 3.906 kB / 2.238 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/5.28, allocations: 3.938 kB / 2.238 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.771e-05/5.28, allocations: 127.1 kB / 2.238 GB, free: 136 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.186e-05/5.28, allocations: 18.58 kB / 2.238 GB, free: 136 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.374e-05/5.281, allocations: 4.859 kB / 2.238 GB, free: 136 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 8.175e-06/5.281, allocations: 0 / 2.238 GB, free: 136 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/5.281, allocations: 64.08 kB / 2.238 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/5.281, allocations: 0 / 2.238 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0001302/5.281, allocations: 33.62 kB / 2.238 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/5.281, allocations: 77.11 kB / 2.238 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.508e-05/5.281, allocations: 85 kB / 2.238 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.484e-06/5.281, allocations: 31.61 kB / 2.238 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 1.288e-05/5.281, allocations: 80.14 kB / 2.238 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/5.281, allocations: 11.78 kB / 2.238 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-06/5.281, allocations: 0 / 2.238 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 4.946e-05/5.281, allocations: 310.8 kB / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.342e-06/5.281, allocations: 3.969 kB / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.24e-06/5.281, allocations: 0 / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.515e-05/5.281, allocations: 3.938 kB / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/5.281, allocations: 0 / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.8e-05/5.281, allocations: 29.67 kB / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/5.281, allocations: 15.73 kB / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/5.281, allocations: 0 / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/5.281, allocations: 2.406 kB / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/5.281, allocations: 0 / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/5.281, allocations: 0 / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.221e-05/5.281, allocations: 0 / 2.239 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/5.281, allocations: 3.906 kB / 2.239 GB, free: 135.2 MB / 0.4948 GB 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.073e-05/5.281, allocations: 130.6 kB / 2.239 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-06/5.281, allocations: 0 / 2.239 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.373e-05/5.281, allocations: 10.83 kB / 2.239 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/5.281, allocations: 0 / 2.239 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/5.281, allocations: 3.938 kB / 2.239 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/5.281, allocations: 3.938 kB / 2.239 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.1e-05/5.281, allocations: 135.6 kB / 2.239 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/5.281, allocations: 0 / 2.239 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.372e-06/5.281, allocations: 0 / 2.239 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/5.281, allocations: 0 / 2.239 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/5.281, allocations: 0 / 2.239 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/5.281, allocations: 3.969 kB / 2.239 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/5.281, allocations: 0 / 2.239 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.173e-05/5.281, allocations: 64.84 kB / 2.239 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001439/5.282, allocations: 449.4 kB / 2.239 GB, free: 134.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.774e-05/5.282, allocations: 84.97 kB / 2.24 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/5.282, allocations: 3.969 kB / 2.24 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.347e-06/5.282, allocations: 2.844 kB / 2.24 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.354e-05/5.282, allocations: 3.906 kB / 2.24 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/5.282, allocations: 0 / 2.24 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.334e-05/5.282, allocations: 75.28 kB / 2.24 GB, free: 134.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0008499/5.283, allocations: 3.969 kB / 2.24 GB, free: 134.2 MB / 0.4948 GB 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 8.703e-05/5.283, allocations: 91.09 kB / 2.24 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 6.466e-05/5.283, allocations: 33.48 kB / 2.24 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/5.283, allocations: 0 / 2.24 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.239e-05/5.283, allocations: 29.64 kB / 2.24 GB, free: 134 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001025/5.283, allocations: 6.484 kB / 2.24 GB, free: 134 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001384/5.283, allocations: 51.92 kB / 2.24 GB, free: 134 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002206/5.283, allocations: 0.684 MB / 2.24 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of SimCode: time 3.41e-07/5.283, allocations: 3.969 kB / 2.24 GB, free: 149.3 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat does not exist to compare? outputFormat=mat