Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.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.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",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.00119/0.00119, allocations: 200.3 kB / 8.544 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009262/0.0009262, allocations: 95.75 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1709/0.1709, allocations: 45.13 MB / 383.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2045/0.3754, allocations: 69.38 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.4952, allocations: 63.25 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.107/1.602, allocations: 0.522 GB / 1.026 GB, free: 143.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/1.603, allocations: 98.16 kB / 1.026 GB, free: 143.4 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.5359/2.138, allocations: 206.8 MB / 1.228 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 2.959e-05/2.138, allocations: 10.03 kB / 1.228 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008493/2.139, allocations: 137 kB / 1.228 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008742/2.14, allocations: 0.5442 MB / 1.229 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.824e-05/2.14, allocations: 82.84 kB / 1.229 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.047e-05/2.14, allocations: 33.16 kB / 1.229 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007746/2.141, allocations: 0.5381 MB / 1.229 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008982/2.142, allocations: 0.7417 MB / 1.23 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/2.142, allocations: 0 / 1.23 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-05/2.142, allocations: 3.594 kB / 1.23 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-05/2.142, allocations: 43.11 kB / 1.23 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003617/2.146, allocations: 4.123 MB / 1.234 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/2.146, allocations: 198.9 kB / 1.234 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/2.146, allocations: 134.8 kB / 1.234 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 5.586e-05/2.146, allocations: 90.3 kB / 1.234 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/2.146, allocations: 42.08 kB / 1.234 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 1.403e-06/2.146, allocations: 0 / 1.234 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=33): time 0.004834/2.151, allocations: 1.394 MB / 1.236 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/2.151, allocations: 132.1 kB / 1.236 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004338/2.152, allocations: 466.7 kB / 1.236 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/2.152, allocations: 29.05 kB / 1.236 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/2.152, allocations: 339.8 kB / 1.237 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.219e-05/2.152, allocations: 118.5 kB / 1.237 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.524e-05/2.152, allocations: 0 / 1.237 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.267e-05/2.152, allocations: 368.9 kB / 1.237 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002636/2.152, allocations: 188.6 kB / 1.237 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003571/2.153, allocations: 491.9 kB / 1.238 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005335/2.153, allocations: 322.4 kB / 1.238 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/2.153, allocations: 3.469 kB / 1.238 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001287/2.155, allocations: 0.8044 MB / 1.239 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/2.155, allocations: 2.5 kB / 1.239 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/2.155, allocations: 9.938 kB / 1.239 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/2.156, allocations: 281.8 kB / 1.239 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003807/2.156, allocations: 122.5 kB / 1.239 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009297/2.157, allocations: 0.9634 MB / 1.24 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005569/2.158, allocations: 35.33 kB / 1.24 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.54e-05/2.158, allocations: 67.05 kB / 1.24 GB, free: 110.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0001226/2.158, allocations: 134.7 kB / 1.241 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.73e-05/2.158, allocations: 60.3 kB / 1.241 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001349/2.159, allocations: 0.741 MB / 1.241 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/2.159, allocations: 3.875 kB / 1.241 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/2.159, allocations: 0 / 1.241 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/2.159, allocations: 0 / 1.241 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001536/2.161, allocations: 1.001 MB / 1.242 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/2.161, allocations: 0.9062 kB / 1.242 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/2.162, allocations: 192.8 kB / 1.242 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.968e-05/2.162, allocations: 19.91 kB / 1.242 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.474e-05/2.162, allocations: 15.41 kB / 1.243 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001533/2.164, allocations: 2.581 MB / 1.245 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/2.164, allocations: 0.9062 kB / 1.245 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009458/2.165, allocations: 0.6876 MB / 1.246 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001361/2.166, allocations: 1.323 MB / 1.247 GB, free: 106 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/2.166, allocations: 173.6 kB / 1.247 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/2.166, allocations: 1.625 kB / 1.247 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004494/2.167, allocations: 19.05 kB / 1.247 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.042e-05/2.167, allocations: 27.84 kB / 1.247 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.046e-05/2.167, allocations: 37.25 kB / 1.247 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0003517/2.167, allocations: 344.4 kB / 1.248 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001758/2.169, allocations: 391.4 kB / 1.248 GB, free: 105.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.001398/2.171, allocations: 1.084 MB / 1.249 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0008162/2.171, allocations: 494.3 kB / 1.249 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/2.171, allocations: 2.25 kB / 1.249 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001102/2.173, allocations: 403.9 kB / 1.25 GB, free: 105 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/2.174, allocations: 241.5 kB / 1.25 GB, free: 105 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/2.175, allocations: 0.8879 MB / 1.251 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000919/2.176, allocations: 1.093 MB / 1.252 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of SimCode: time 3e-07/2.176, allocations: 0 / 1.252 GB, free: 103.9 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1)