Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2",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 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 183.7 kB / 8.479 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.2 MB / 214.1 MB, free: 5.457 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 79.33 kB / 262.1 MB, free: 5.516 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2241/0.2252, allocations: 52.97 MB / 315.1 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09182/0.317, allocations: 47.58 MB / 362.6 MB, free: 9.93 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8854/1.202, allocations: 450.6 MB / 0.7942 GB, free: 122.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/1.203, allocations: 75.95 kB / 0.7943 GB, free: 122 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.05951/1.262, allocations: 29.59 MB / 0.8232 GB, free: 92.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/1.262, allocations: 8 kB / 0.8232 GB, free: 92.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/1.264, allocations: 224.4 kB / 0.8234 GB, free: 92.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002432/1.264, allocations: 214.8 kB / 0.8236 GB, free: 91.78 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/1.264, allocations: 0 / 0.8236 GB, free: 91.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.951e-05/1.265, allocations: 8 kB / 0.8236 GB, free: 91.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003385/1.265, allocations: 147.9 kB / 0.8237 GB, free: 91.63 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002148/1.265, allocations: 133 kB / 0.8239 GB, free: 91.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/1.265, allocations: 4 kB / 0.8239 GB, free: 91.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/1.265, allocations: 0 / 0.8239 GB, free: 91.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/1.265, allocations: 224 / 0.8239 GB, free: 91.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009904/1.266, allocations: 0.5656 MB / 0.8244 GB, free: 90.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002504/1.266, allocations: 118.5 kB / 0.8245 GB, free: 90.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.192e-05/1.267, allocations: 60.84 kB / 0.8246 GB, free: 90.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/1.267, allocations: 4 kB / 0.8246 GB, free: 90.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.463e-05/1.267, allocations: 35.06 kB / 0.8246 GB, free: 90.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 1.923e-06/1.267, allocations: 3.938 kB / 0.8246 GB, free: 90.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=19): time 0.003634/1.27, allocations: 0.8698 MB / 0.8255 GB, free: 89.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/1.27, allocations: 51.41 kB / 0.8255 GB, free: 89.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.406e-05/1.27, allocations: 100.9 kB / 0.8256 GB, free: 89.51 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/1.27, allocations: 25.7 kB / 0.8257 GB, free: 89.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.679e-05/1.27, allocations: 99.97 kB / 0.8257 GB, free: 89.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/1.27, allocations: 67 kB / 0.8258 GB, free: 89.31 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.719e-05/1.27, allocations: 0 / 0.8258 GB, free: 89.31 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.689e-05/1.271, allocations: 318.8 kB / 0.8261 GB, free: 88.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.211e-05/1.271, allocations: 63.98 kB / 0.8262 GB, free: 88.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/1.271, allocations: 91.47 kB / 0.8263 GB, free: 88.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/1.271, allocations: 70.03 kB / 0.8263 GB, free: 88.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/1.271, allocations: 0 / 0.8263 GB, free: 88.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003478/1.271, allocations: 240.7 kB / 0.8266 GB, free: 88.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/1.271, allocations: 11.91 kB / 0.8266 GB, free: 88.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/1.271, allocations: 0 / 0.8266 GB, free: 88.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001389/1.271, allocations: 40.78 kB / 0.8266 GB, free: 88.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/1.272, allocations: 55.95 kB / 0.8267 GB, free: 88.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000319/1.272, allocations: 0.5797 MB / 0.8272 GB, free: 87.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/1.272, allocations: 7.938 kB / 0.8272 GB, free: 87.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/1.272, allocations: 23.98 kB / 0.8273 GB, free: 87.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 8.514e-05/1.272, allocations: 116.9 kB / 0.8274 GB, free: 87.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/1.272, allocations: 7.906 kB / 0.8274 GB, free: 87.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008168/1.273, allocations: 359.2 kB / 0.8277 GB, free: 87.28 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/1.273, allocations: 0 / 0.8277 GB, free: 87.28 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/1.273, allocations: 4 kB / 0.8277 GB, free: 87.28 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/1.273, allocations: 0 / 0.8277 GB, free: 87.28 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006898/1.274, allocations: 0.5571 MB / 0.8283 GB, free: 86.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/1.274, allocations: 0 / 0.8283 GB, free: 86.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003409/1.274, allocations: 71.83 kB / 0.8283 GB, free: 86.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-05/1.274, allocations: 16.84 kB / 0.8284 GB, free: 86.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.26e-05/1.275, allocations: 12 kB / 0.8284 GB, free: 86.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006499/1.275, allocations: 1.217 MB / 0.8296 GB, free: 85.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.275, allocations: 4.094 kB / 0.8296 GB, free: 85.23 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004564/1.276, allocations: 435.7 kB / 0.83 GB, free: 84.75 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006657/1.276, allocations: 0.8996 MB / 0.8309 GB, free: 83.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.717e-05/1.276, allocations: 89 kB / 0.8309 GB, free: 83.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.105e-05/1.276, allocations: 0 / 0.8309 GB, free: 83.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/1.277, allocations: 7.984 kB / 0.8309 GB, free: 83.69 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.399e-05/1.277, allocations: 19.89 kB / 0.831 GB, free: 83.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.78e-05/1.277, allocations: 27.98 kB / 0.831 GB, free: 83.64 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.15e-05/1.277, allocations: 91.27 kB / 0.8311 GB, free: 83.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001237/1.278, allocations: 140 kB / 0.8312 GB, free: 83.42 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009359/1.279, allocations: 0.6289 MB / 0.8318 GB, free: 82.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003807/1.279, allocations: 171.8 kB / 0.832 GB, free: 82.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/1.279, allocations: 4 kB / 0.832 GB, free: 82.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002419/1.28, allocations: 193.8 kB / 0.8322 GB, free: 82.42 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/1.28, allocations: 40.33 kB / 0.8322 GB, free: 82.38 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006062/1.281, allocations: 328.2 kB / 0.8325 GB, free: 82.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004328/1.281, allocations: 0.7901 MB / 0.8333 GB, free: 81.21 MB / 426.7 MB Notification: Performance of SimCode: time 3.01e-07/1.281, allocations: 0 / 0.8333 GB, free: 81.21 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TestOnly_IdealGasN2.fmu > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1)