Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_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 trunk/package.mo): time 0.001733/0.001733, allocations: 199 kB / 8.537 MB, free: 1.777 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001005/0.001005, allocations: 90.06 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1713/0.1713, allocations: 45.14 MB / 383.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2006/0.372, allocations: 69.37 MB / 452.7 MB, free: 76.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08902/0.461, allocations: 63.24 MB / 0.5039 GB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.845/1.306, allocations: 462.8 MB / 0.9558 GB, free: 203 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/1.306, allocations: 74.33 kB / 0.9559 GB, free: 203 MB / 0.5261 GB 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.06368/1.37, allocations: 30.29 MB / 0.9854 GB, free: 184.1 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/1.37, allocations: 8 kB / 0.9854 GB, free: 184.1 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001836/1.372, allocations: 235.4 kB / 0.9857 GB, free: 183.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/1.372, allocations: 210.9 kB / 0.9859 GB, free: 183.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/1.372, allocations: 3.984 kB / 0.9859 GB, free: 183.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.83e-05/1.372, allocations: 4 kB / 0.9859 GB, free: 183.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003085/1.373, allocations: 151.8 kB / 0.986 GB, free: 183.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001982/1.373, allocations: 132.3 kB / 0.9862 GB, free: 183.4 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/1.373, allocations: 4 kB / 0.9862 GB, free: 183.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/1.373, allocations: 7.938 kB / 0.9862 GB, free: 183.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/1.373, allocations: 0 / 0.9862 GB, free: 183.3 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008705/1.374, allocations: 0.5399 MB / 0.9867 GB, free: 182.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002238/1.374, allocations: 122.5 kB / 0.9868 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.288e-05/1.374, allocations: 60.84 kB / 0.9869 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/1.374, allocations: 4 kB / 0.9869 GB, free: 182.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/1.374, allocations: 34.62 kB / 0.9869 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=14): time 1.923e-06/1.374, allocations: 0 / 0.9869 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=19): time 0.003814/1.378, allocations: 0.8704 MB / 0.9878 GB, free: 181.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.509e-05/1.378, allocations: 59.34 kB / 0.9878 GB, free: 181.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.505e-05/1.378, allocations: 105 kB / 0.9879 GB, free: 181.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/1.378, allocations: 29.7 kB / 0.9879 GB, free: 181.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 2.369e-05/1.378, allocations: 87.95 kB / 0.988 GB, free: 181.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.016e-05/1.378, allocations: 71.03 kB / 0.9881 GB, free: 181.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.751e-05/1.378, allocations: 4 kB / 0.9881 GB, free: 181.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 3.72e-05/1.378, allocations: 322.7 kB / 0.9884 GB, free: 180.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/1.378, allocations: 60 kB / 0.9885 GB, free: 180.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/1.378, allocations: 95.45 kB / 0.9885 GB, free: 180.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/1.379, allocations: 76.84 kB / 0.9886 GB, free: 180.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.21e-07/1.379, allocations: 0 / 0.9886 GB, free: 180.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003729/1.379, allocations: 230.8 kB / 0.9888 GB, free: 180.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/1.379, allocations: 4 kB / 0.9888 GB, free: 180.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/1.379, allocations: 4 kB / 0.9888 GB, free: 180.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001345/1.379, allocations: 40.83 kB / 0.9889 GB, free: 180.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003396/1.379, allocations: 55.91 kB / 0.9889 GB, free: 180.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003156/1.38, allocations: 0.5759 MB / 0.9895 GB, free: 179.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/1.38, allocations: 3.984 kB / 0.9895 GB, free: 179.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.561e-05/1.38, allocations: 28 kB / 0.9895 GB, free: 179.7 MB / 0.5261 GB 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 7.642e-05/1.38, allocations: 112.9 kB / 0.9896 GB, free: 179.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.873e-05/1.38, allocations: 7.906 kB / 0.9896 GB, free: 179.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008389/1.381, allocations: 350.3 kB / 0.99 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/1.381, allocations: 11.94 kB / 0.99 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/1.381, allocations: 0 / 0.99 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/1.381, allocations: 3.906 kB / 0.99 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007089/1.382, allocations: 0.5569 MB / 0.9905 GB, free: 178.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/1.382, allocations: 0 / 0.9905 GB, free: 178.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003774/1.382, allocations: 60.05 kB / 0.9906 GB, free: 178.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.554e-05/1.382, allocations: 24.84 kB / 0.9906 GB, free: 178.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.33e-05/1.382, allocations: 11.98 kB / 0.9906 GB, free: 178.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005475/1.383, allocations: 1.213 MB / 0.9918 GB, free: 177.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.383, allocations: 0 / 0.9918 GB, free: 177.1 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004796/1.383, allocations: 437.7 kB / 0.9922 GB, free: 176.7 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006786/1.384, allocations: 0.8911 MB / 0.9931 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 2.707e-05/1.384, allocations: 92.91 kB / 0.9932 GB, free: 175.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.472e-05/1.384, allocations: 8 kB / 0.9932 GB, free: 175.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/1.384, allocations: 4 kB / 0.9932 GB, free: 175.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/1.384, allocations: 24.03 kB / 0.9932 GB, free: 175.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.341e-05/1.385, allocations: 27.98 kB / 0.9933 GB, free: 175.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.478e-05/1.385, allocations: 83.28 kB / 0.9933 GB, free: 175.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001196/1.386, allocations: 159.8 kB / 0.9935 GB, free: 175.3 MB / 0.5261 GB 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.000802/1.387, allocations: 0.6324 MB / 0.9941 GB, free: 174.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003648/1.387, allocations: 176.6 kB / 0.9943 GB, free: 174.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/1.387, allocations: 4 kB / 0.9943 GB, free: 174.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002392/1.387, allocations: 205.9 kB / 0.9945 GB, free: 174.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/1.388, allocations: 35.95 kB / 0.9945 GB, free: 174.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006002/1.388, allocations: 324.6 kB / 0.9948 GB, free: 173.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004245/1.389, allocations: 0.7901 MB / 0.9956 GB, free: 173.1 MB / 0.5261 GB Notification: Performance of SimCode: time 2.91e-07/1.389, allocations: 0 / 0.9956 GB, free: 173.1 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1)