Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.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.MixIdealGasAir,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.MixIdealGasAir,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_MixIdealGasAir",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.001068/0.001068, allocations: 187.7 kB / 8.481 MB, free: 1.844 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.185/1.185, allocations: 205.2 MB / 214.1 MB, free: 5.102 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.0009833/0.0009831, allocations: 83.67 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1952/0.1962, allocations: 52.97 MB / 315 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08345/0.2797, allocations: 47.58 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.456/1.736, allocations: 0.7285 GB / 1.083 GB, free: 164.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/1.736, allocations: 76.06 kB / 1.083 GB, free: 164.6 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.09022/1.827, allocations: 39.81 MB / 1.122 GB, free: 134.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/1.827, allocations: 8 kB / 1.122 GB, free: 134.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003341/1.83, allocations: 431 kB / 1.122 GB, free: 134.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003941/1.83, allocations: 254.8 kB / 1.122 GB, free: 134.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/1.83, allocations: 12 kB / 1.122 GB, free: 134 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.39e-05/1.831, allocations: 15.94 kB / 1.122 GB, free: 134 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000755/1.831, allocations: 476.5 kB / 1.123 GB, free: 133.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00044/1.832, allocations: 329.4 kB / 1.123 GB, free: 133.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/1.832, allocations: 0 / 1.123 GB, free: 133.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.602e-05/1.832, allocations: 7.891 kB / 1.123 GB, free: 133.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/1.832, allocations: 4 kB / 1.123 GB, free: 133.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/1.834, allocations: 0.9506 MB / 1.124 GB, free: 132.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/1.834, allocations: 236.1 kB / 1.124 GB, free: 132 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/1.834, allocations: 134.5 kB / 1.124 GB, free: 131.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001061/1.835, allocations: 0.6554 MB / 1.125 GB, free: 131.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/1.835, allocations: 34.56 kB / 1.125 GB, free: 131 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 1.704e-06/1.835, allocations: 8 kB / 1.125 GB, free: 131 MB / 426.7 MB Notification: Performance of matching and sorting (n=29): time 0.000612/1.836, allocations: 259.6 kB / 1.125 GB, free: 130.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/1.836, allocations: 81.36 kB / 1.125 GB, free: 130.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.329e-05/1.836, allocations: 101 kB / 1.125 GB, free: 130.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/1.836, allocations: 25.7 kB / 1.125 GB, free: 130.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.898e-05/1.836, allocations: 116.6 kB / 1.126 GB, free: 130.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.608e-05/1.836, allocations: 94.56 kB / 1.126 GB, free: 130.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/1.836, allocations: 4 kB / 1.126 GB, free: 130.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.324e-05/1.836, allocations: 334.7 kB / 1.126 GB, free: 130 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/1.837, allocations: 100.6 kB / 1.126 GB, free: 129.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/1.837, allocations: 179.2 kB / 1.126 GB, free: 129.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002369/1.837, allocations: 131.9 kB / 1.126 GB, free: 129.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/1.837, allocations: 0 / 1.126 GB, free: 129.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005589/1.838, allocations: 325.4 kB / 1.127 GB, free: 129.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/1.838, allocations: 7.906 kB / 1.127 GB, free: 129.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/1.838, allocations: 7.938 kB / 1.127 GB, free: 129.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/1.838, allocations: 4 kB / 1.127 GB, free: 129.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003872/1.838, allocations: 79.83 kB / 1.127 GB, free: 129.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/1.838, allocations: 4 kB / 1.127 GB, free: 129.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/1.838, allocations: 35.98 kB / 1.127 GB, free: 129.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.7e-05/1.838, allocations: 12 kB / 1.127 GB, free: 129.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 9.384e-05/1.838, allocations: 112.9 kB / 1.127 GB, free: 129 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/1.839, allocations: 19.8 kB / 1.127 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007362/1.839, allocations: 364.6 kB / 1.127 GB, free: 128.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/1.839, allocations: 0 / 1.127 GB, free: 128.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/1.839, allocations: 4 kB / 1.127 GB, free: 128.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/1.839, allocations: 0 / 1.127 GB, free: 128.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004841/1.84, allocations: 320.5 kB / 1.128 GB, free: 128.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/1.84, allocations: 3.938 kB / 1.128 GB, free: 128.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003962/1.84, allocations: 59.91 kB / 1.128 GB, free: 128.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/1.84, allocations: 0 / 1.128 GB, free: 128.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/1.84, allocations: 11.98 kB / 1.128 GB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/1.84, allocations: 4 kB / 1.128 GB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.84, allocations: 3.984 kB / 1.128 GB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006338/1.841, allocations: 0.5208 MB / 1.128 GB, free: 127.6 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008726/1.842, allocations: 1.021 MB / 1.129 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.109e-05/1.842, allocations: 96.86 kB / 1.129 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.824e-05/1.842, allocations: 0 / 1.129 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003636/1.842, allocations: 11.98 kB / 1.129 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/1.842, allocations: 24.16 kB / 1.129 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.471e-05/1.842, allocations: 23.89 kB / 1.129 GB, free: 126.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.926e-05/1.842, allocations: 83.28 kB / 1.129 GB, free: 126.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001761/1.844, allocations: 307.8 kB / 1.13 GB, free: 126 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium.p,medium.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 29 * 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.001745/1.846, allocations: 0.8837 MB / 1.131 GB, free: 125.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000386/1.846, allocations: 263.8 kB / 1.131 GB, free: 124.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.846, allocations: 0 / 1.131 GB, free: 124.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001641/1.847, allocations: 139.8 kB / 1.131 GB, free: 124.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005294/1.847, allocations: 75.83 kB / 1.131 GB, free: 124.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009235/1.848, allocations: 0.5837 MB / 1.132 GB, free: 124 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003962/1.848, allocations: 0.7944 MB / 1.132 GB, free: 123.2 MB / 426.7 MB Notification: Performance of SimCode: time 3e-07/1.848, allocations: 0 / 1.132 GB, free: 123.2 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TestOnly_MixIdealGasAir.fmu > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe 2>&1)