Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",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 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 178.9 kB / 8.129 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.196/1.196, allocations: 221.4 MB / 229.9 MB, free: 13.49 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009473/0.0009474, allocations: 98.88 kB / 280.8 MB, free: 10.51 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09703/0.09801, allocations: 55.82 MB / 336.6 MB, free: 2.699 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08354/0.1816, allocations: 50.41 MB / 387 MB, free: 248 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.22/5.402, allocations: 3.552 GB / 3.93 GB, free: 153.2 MB / 450.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/5.402, allocations: 85.22 kB / 3.93 GB, free: 153.2 MB / 450.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 1.66/7.062, allocations: 0.5375 GB / 4.467 GB, free: 41.49 MB / 466.8 MB Notification: Performance of prepare preOptimizeDAE: time 2.877e-05/7.062, allocations: 10.03 kB / 4.467 GB, free: 41.49 MB / 466.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003979/7.062, allocations: 129.3 kB / 4.467 GB, free: 41.43 MB / 466.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/7.063, allocations: 0.7288 MB / 4.468 GB, free: 41.2 MB / 466.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-05/7.063, allocations: 102.4 kB / 4.468 GB, free: 41.13 MB / 466.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/7.063, allocations: 53.22 kB / 4.468 GB, free: 41.13 MB / 466.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00167/7.065, allocations: 1.309 MB / 4.469 GB, free: 41.13 MB / 466.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/7.067, allocations: 1.321 MB / 4.471 GB, free: 40.9 MB / 466.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/7.067, allocations: 9.938 kB / 4.471 GB, free: 40.89 MB / 466.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/7.067, allocations: 3.969 kB / 4.471 GB, free: 40.89 MB / 466.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.148e-05/7.067, allocations: 67.8 kB / 4.471 GB, free: 40.89 MB / 466.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006904/7.074, allocations: 6.41 MB / 4.477 GB, free: 37.43 MB / 466.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009523/7.075, allocations: 0.6292 MB / 4.478 GB, free: 37.41 MB / 466.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005461/7.075, allocations: 474.9 kB / 4.478 GB, free: 37.4 MB / 466.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007327/7.076, allocations: 1.305 MB / 4.479 GB, free: 35.99 MB / 466.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/7.076, allocations: 45.77 kB / 4.479 GB, free: 35.95 MB / 466.8 MB Notification: Performance of pre-optimization done (n=78): time 2.224e-06/7.076, allocations: 6.281 kB / 4.479 GB, free: 35.95 MB / 466.8 MB Notification: Performance of matching and sorting (n=90): time 0.01381/7.09, allocations: 4.153 MB / 4.484 GB, free: 35.51 MB / 466.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/7.09, allocations: 116.9 kB / 4.484 GB, free: 35.38 MB / 466.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005699/7.091, allocations: 0.5494 MB / 4.484 GB, free: 35.25 MB / 466.8 MB Notification: Performance of collectPreVariables (initialization): time 8.773e-05/7.091, allocations: 32.86 kB / 4.484 GB, free: 35.22 MB / 466.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/7.091, allocations: 409.7 kB / 4.485 GB, free: 35 MB / 466.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/7.091, allocations: 314.1 kB / 4.485 GB, free: 34.84 MB / 466.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.348e-05/7.091, allocations: 0 / 4.485 GB, free: 34.84 MB / 466.8 MB Notification: Performance of setup shared object (initialization): time 8.979e-05/7.091, allocations: 390 kB / 4.485 GB, free: 34.53 MB / 466.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007159/7.092, allocations: 0.5561 MB / 4.486 GB, free: 34.53 MB / 466.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008217/7.093, allocations: 0.8774 MB / 4.487 GB, free: 34.15 MB / 466.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002367/7.095, allocations: 0.9796 MB / 4.488 GB, free: 34.14 MB / 466.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/7.095, allocations: 3.75 kB / 4.488 GB, free: 34.14 MB / 466.8 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003763/7.099, allocations: 1.93 MB / 4.49 GB, free: 34.03 MB / 466.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005127/7.099, allocations: 3.915 MB / 4.493 GB, free: 29.96 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/7.1, allocations: 11.34 kB / 4.493 GB, free: 29.96 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009988/7.101, allocations: 252 kB / 4.494 GB, free: 29.95 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/7.102, allocations: 269.3 kB / 4.494 GB, free: 29.95 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008176/7.102, allocations: 0.8631 MB / 4.495 GB, free: 29.43 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/7.104, allocations: 90.39 kB / 4.495 GB, free: 29.42 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/7.104, allocations: 78 kB / 4.495 GB, free: 29.42 MB / 466.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.661e-06/7.104, allocations: 3.594 kB / 4.495 GB, free: 29.42 MB / 466.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003422/7.107, allocations: 1.773 MB / 4.497 GB, free: 29.39 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/7.107, allocations: 11.25 kB / 4.497 GB, free: 29.39 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009331/7.108, allocations: 250 kB / 4.497 GB, free: 29.39 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/7.109, allocations: 267.9 kB / 4.497 GB, free: 29.39 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007844/7.11, allocations: 0.8647 MB / 4.498 GB, free: 28.87 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009676/7.111, allocations: 78.67 kB / 4.498 GB, free: 28.86 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/7.111, allocations: 68.25 kB / 4.498 GB, free: 28.86 MB / 466.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,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 (147): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 2 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002447/7.111, allocations: 150.2 kB / 4.498 GB, free: 28.75 MB / 466.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/7.112, allocations: 81.62 kB / 4.498 GB, free: 28.71 MB / 466.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003675/7.115, allocations: 1.922 MB / 4.5 GB, free: 28.6 MB / 466.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/7.115, allocations: 9.906 kB / 4.5 GB, free: 28.6 MB / 466.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/7.115, allocations: 0 / 4.5 GB, free: 28.6 MB / 466.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/7.115, allocations: 6.422 kB / 4.5 GB, free: 28.6 MB / 466.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007405/7.123, allocations: 3.843 MB / 4.504 GB, free: 27.81 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/7.123, allocations: 3.75 kB / 4.504 GB, free: 27.81 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007996/7.123, allocations: 174.2 kB / 4.504 GB, free: 27.81 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/7.125, allocations: 315.4 kB / 4.504 GB, free: 27.79 MB / 466.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.31e-05/7.125, allocations: 29.33 kB / 4.504 GB, free: 27.79 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007342/7.126, allocations: 0.8357 MB / 4.505 GB, free: 27.27 MB / 466.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/7.126, allocations: 3.438 kB / 4.505 GB, free: 27.27 MB / 466.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003554/7.129, allocations: 2.479 MB / 4.508 GB, free: 26.73 MB / 466.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004922/7.134, allocations: 3.769 MB / 4.511 GB, free: 25.81 MB / 466.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005067/7.135, allocations: 320.2 kB / 4.512 GB, free: 25.68 MB / 466.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/7.135, allocations: 13.59 kB / 4.512 GB, free: 25.68 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009624/7.136, allocations: 63.83 kB / 4.512 GB, free: 25.67 MB / 466.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/7.136, allocations: 67.14 kB / 4.512 GB, free: 25.67 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/7.136, allocations: 52.97 kB / 4.512 GB, free: 25.67 MB / 466.8 MB Notification: Performance of sort global known variables: time 0.0004267/7.137, allocations: 427.8 kB / 4.512 GB, free: 25.58 MB / 466.8 MB Notification: Performance of remove unused functions: time 0.005447/7.142, allocations: 1.645 MB / 4.514 GB, free: 25.4 MB / 466.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003489/7.145, allocations: 2.086 MB / 4.516 GB, free: 25 MB / 466.8 MB Notification: Performance of simCode: created initialization part: time 0.003112/7.149, allocations: 2.305 MB / 4.518 GB, free: 24.85 MB / 466.8 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/7.149, allocations: 448 / 4.518 GB, free: 24.85 MB / 466.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0008969/7.15, allocations: 0.6606 MB / 4.519 GB, free: 24.84 MB / 466.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/7.151, allocations: 379.6 kB / 4.519 GB, free: 24.83 MB / 466.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004705/7.156, allocations: 2.042 MB / 4.521 GB, free: 24.4 MB / 466.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009335/7.157, allocations: 1.288 MB / 4.522 GB, free: 23.68 MB / 466.8 MB Notification: Performance of SimCode: time 1.793e-06/7.157, allocations: 0 / 4.522 GB, free: 23.68 MB / 466.8 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)