Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.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.FlueGas,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_FlueGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.FlueGas,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_FlueGas",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.001134/0.001134, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008724/0.0008725, allocations: 98.92 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1747/0.1747, allocations: 45.15 MB / 383.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1929/0.3677, allocations: 69.36 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08516/0.4529, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.222/1.675, allocations: 0.7328 GB / 1.237 GB, free: 112 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001894/1.675, allocations: 75.64 kB / 1.237 GB, free: 111.9 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.1209/1.796, allocations: 63.41 MB / 1.299 GB, free: 55.54 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/1.796, allocations: 8 kB / 1.299 GB, free: 55.54 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00596/1.802, allocations: 0.8615 MB / 1.299 GB, free: 54.67 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004113/1.803, allocations: 274.8 kB / 1.3 GB, free: 54.36 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/1.803, allocations: 8 kB / 1.3 GB, free: 54.36 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/1.803, allocations: 19.91 kB / 1.3 GB, free: 54.34 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001056/1.804, allocations: 0.6289 MB / 1.3 GB, free: 53.71 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005569/1.804, allocations: 412.5 kB / 1.301 GB, free: 53.29 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/1.804, allocations: 0 / 1.301 GB, free: 53.29 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.212e-05/1.804, allocations: 0 / 1.301 GB, free: 53.29 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/1.805, allocations: 12 kB / 1.301 GB, free: 53.28 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002764/1.807, allocations: 1.302 MB / 1.302 GB, free: 51.93 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004232/1.808, allocations: 328.1 kB / 1.302 GB, free: 51.59 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002736/1.808, allocations: 229 kB / 1.303 GB, free: 51.36 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007333/1.809, allocations: 363.2 kB / 1.303 GB, free: 50.95 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.412e-05/1.809, allocations: 38.56 kB / 1.303 GB, free: 50.91 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 1.453e-06/1.809, allocations: 4 kB / 1.303 GB, free: 50.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.0008425/1.81, allocations: 445.3 kB / 1.303 GB, free: 50.46 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.64e-05/1.81, allocations: 77.11 kB / 1.303 GB, free: 50.37 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.938e-05/1.81, allocations: 118.2 kB / 1.304 GB, free: 50.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/1.81, allocations: 25.7 kB / 1.304 GB, free: 50.21 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 2.812e-05/1.81, allocations: 112.4 kB / 1.304 GB, free: 50.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.485e-05/1.81, allocations: 106.5 kB / 1.304 GB, free: 50 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-05/1.81, allocations: 0 / 1.304 GB, free: 50 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 4.062e-05/1.81, allocations: 334.8 kB / 1.304 GB, free: 49.66 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002689/1.81, allocations: 196 kB / 1.304 GB, free: 49.47 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003127/1.811, allocations: 313 kB / 1.305 GB, free: 49.12 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003458/1.811, allocations: 235.8 kB / 1.305 GB, free: 48.89 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/1.811, allocations: 4 kB / 1.305 GB, free: 48.88 MB / 0.5261 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008827/1.812, allocations: 0.5248 MB / 1.305 GB, free: 48.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/1.812, allocations: 12 kB / 1.305 GB, free: 48.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/1.812, allocations: 7.906 kB / 1.305 GB, free: 48.33 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/1.812, allocations: 11.98 kB / 1.305 GB, free: 48.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006164/1.812, allocations: 87.81 kB / 1.305 GB, free: 48.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/1.813, allocations: 11.94 kB / 1.305 GB, free: 48.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004627/1.813, allocations: 35.67 kB / 1.306 GB, free: 48.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.111e-05/1.813, allocations: 15.98 kB / 1.306 GB, free: 48.17 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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 0.0001205/1.813, allocations: 118.8 kB / 1.306 GB, free: 48.05 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/1.813, allocations: 19.75 kB / 1.306 GB, free: 48.03 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/1.814, allocations: 0.5332 MB / 1.306 GB, free: 47.49 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/1.814, allocations: 8 kB / 1.306 GB, free: 47.48 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/1.814, allocations: 0 / 1.306 GB, free: 47.48 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/1.814, allocations: 0 / 1.306 GB, free: 47.48 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006884/1.815, allocations: 0.5042 MB / 1.307 GB, free: 46.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/1.815, allocations: 3.938 kB / 1.307 GB, free: 46.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006001/1.816, allocations: 63.89 kB / 1.307 GB, free: 46.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/1.816, allocations: 4 kB / 1.307 GB, free: 46.87 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.648e-05/1.816, allocations: 7.984 kB / 1.307 GB, free: 46.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/1.816, allocations: 0 / 1.307 GB, free: 46.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/1.816, allocations: 4 kB / 1.307 GB, free: 46.86 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000953/1.817, allocations: 0.7391 MB / 1.307 GB, free: 46.1 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001367/1.818, allocations: 1.349 MB / 1.309 GB, free: 44.72 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.821e-05/1.818, allocations: 100.9 kB / 1.309 GB, free: 44.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.265e-05/1.818, allocations: 7.984 kB / 1.309 GB, free: 44.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005539/1.819, allocations: 19.92 kB / 1.309 GB, free: 44.58 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/1.819, allocations: 27.89 kB / 1.309 GB, free: 44.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.461e-05/1.819, allocations: 15.98 kB / 1.309 GB, free: 44.54 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.002e-05/1.819, allocations: 100.4 kB / 1.309 GB, free: 44.44 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00143/1.82, allocations: 259.9 kB / 1.309 GB, free: 44.18 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (state.p,state.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium2.X[3],medium2.X[4]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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.001302/1.822, allocations: 0.8701 MB / 1.31 GB, free: 43.31 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0006308/1.822, allocations: 482.8 kB / 1.311 GB, free: 42.84 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/1.822, allocations: 0 / 1.311 GB, free: 42.84 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000297/1.823, allocations: 243.8 kB / 1.311 GB, free: 42.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005738/1.823, allocations: 73.44 kB / 1.311 GB, free: 42.53 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/1.824, allocations: 0.7847 MB / 1.312 GB, free: 41.72 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004757/1.825, allocations: 0.8062 MB / 1.312 GB, free: 40.89 MB / 0.5261 GB Notification: Performance of SimCode: time 2.9e-07/1.825, allocations: 3.938 kB / 1.312 GB, free: 40.89 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_FlueGas_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_FlueGas.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.FlueGas.pipe 2>&1)