Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",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.004268/0.004267, allocations: 175.7 kB / 7.457 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7777/0.7778, allocations: 133.5 MB / 141.4 MB, free: 15.67 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.98/1.98, allocations: 221.3 MB / 395 MB, free: 10.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 93.16 kB / 477.8 MB, free: 10.88 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5475/0.5487, allocations: 88.43 MB / 0.5529 GB, free: 88.95 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.7656, allocations: 82.31 MB / 0.6333 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.398/6.163, allocations: 2.117 GB / 2.75 GB, free: 115.2 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/6.164, allocations: 83.95 kB / 2.75 GB, free: 115.2 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 2.607/8.771, allocations: 0.6609 GB / 3.411 GB, free: 104.6 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/8.771, allocations: 11.06 kB / 3.411 GB, free: 104.6 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003307/8.775, allocations: 0.5907 MB / 3.412 GB, free: 104.6 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03332/8.808, allocations: 13.2 MB / 3.425 GB, free: 103.9 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001202/8.809, allocations: 317.6 kB / 3.425 GB, free: 103.9 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002832/8.809, allocations: 37.91 kB / 3.425 GB, free: 103.9 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001463/8.811, allocations: 0.7371 MB / 3.426 GB, free: 103.9 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/8.812, allocations: 0.9082 MB / 3.427 GB, free: 103.7 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/8.812, allocations: 0 / 3.427 GB, free: 103.7 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.879e-05/8.813, allocations: 3.812 kB / 3.427 GB, free: 103.7 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.084e-05/8.813, allocations: 31.06 kB / 3.427 GB, free: 103.7 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007067/8.82, allocations: 3.155 MB / 3.43 GB, free: 102.9 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000916/8.821, allocations: 0.5384 MB / 3.43 GB, free: 102.9 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000496/8.821, allocations: 365.4 kB / 3.431 GB, free: 102.9 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001009/8.822, allocations: 1.035 MB / 3.432 GB, free: 101.7 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006617/8.823, allocations: 468.6 kB / 3.432 GB, free: 101.6 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=57): time 4.528e-06/8.823, allocations: 0 / 3.432 GB, free: 101.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=57): time 0.001998/8.825, allocations: 0.7687 MB / 3.433 GB, free: 101.5 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/8.825, allocations: 136.3 kB / 3.433 GB, free: 101.4 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008621/8.826, allocations: 0.6512 MB / 3.434 GB, free: 101.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.906e-05/8.826, allocations: 33.22 kB / 3.434 GB, free: 101.2 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002319/8.826, allocations: 323 kB / 3.434 GB, free: 101.1 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000167/8.826, allocations: 184.7 kB / 3.434 GB, free: 101 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/8.826, allocations: 0 / 3.434 GB, free: 101 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.428e-05/8.827, allocations: 328.2 kB / 3.434 GB, free: 100.7 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004628/8.827, allocations: 313 kB / 3.435 GB, free: 100.7 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006126/8.828, allocations: 0.5039 MB / 3.435 GB, free: 100.5 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008693/8.828, allocations: 414.7 kB / 3.436 GB, free: 100.5 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/8.828, allocations: 0 / 3.436 GB, free: 100.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001678/8.83, allocations: 0.9019 MB / 3.437 GB, free: 100.4 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/8.83, allocations: 2.75 kB / 3.437 GB, free: 100.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/8.83, allocations: 10.41 kB / 3.437 GB, free: 100.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/8.83, allocations: 7.812 kB / 3.437 GB, free: 100.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/8.831, allocations: 226.4 kB / 3.437 GB, free: 100.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/8.831, allocations: 6.906 kB / 3.437 GB, free: 100.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001549/8.833, allocations: 292 kB / 3.437 GB, free: 100.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/8.833, allocations: 49.38 kB / 3.437 GB, free: 100.4 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * 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: 1 * 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.0002268/8.833, allocations: 159.7 kB / 3.437 GB, free: 100.2 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/8.833, allocations: 90.94 kB / 3.437 GB, free: 100.2 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/8.835, allocations: 0.8335 MB / 3.438 GB, free: 100.1 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/8.835, allocations: 14.61 kB / 3.438 GB, free: 100.1 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/8.835, allocations: 3.125 kB / 3.438 GB, free: 100.1 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/8.835, allocations: 3.719 kB / 3.438 GB, free: 100.1 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004106/8.839, allocations: 2.969 MB / 3.441 GB, free: 99.45 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/8.839, allocations: 10.09 kB / 3.441 GB, free: 99.45 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006661/8.84, allocations: 130.3 kB / 3.441 GB, free: 99.45 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.897e-05/8.84, allocations: 14.69 kB / 3.441 GB, free: 99.44 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.986e-05/8.84, allocations: 19.69 kB / 3.441 GB, free: 99.44 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-05/8.84, allocations: 15.66 kB / 3.441 GB, free: 99.44 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/8.84, allocations: 11.59 kB / 3.441 GB, free: 99.44 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001816/8.842, allocations: 1.53 MB / 3.443 GB, free: 98.43 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00224/8.844, allocations: 1.996 MB / 3.445 GB, free: 97.04 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006256/8.845, allocations: 311.5 kB / 3.445 GB, free: 96.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/8.845, allocations: 17.05 kB / 3.445 GB, free: 96.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/8.846, allocations: 127 kB / 3.445 GB, free: 96.9 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.828e-05/8.846, allocations: 56.19 kB / 3.445 GB, free: 96.89 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.788e-05/8.846, allocations: 44.59 kB / 3.445 GB, free: 96.89 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0006109/8.847, allocations: 0.5001 MB / 3.446 GB, free: 96.8 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002478/8.849, allocations: 0.5922 MB / 3.446 GB, free: 96.77 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.002587/8.852, allocations: 1.757 MB / 3.448 GB, free: 96.34 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001446/8.853, allocations: 0.767 MB / 3.449 GB, free: 96.31 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/8.853, allocations: 6.156 kB / 3.449 GB, free: 96.31 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005608/8.854, allocations: 450.5 kB / 3.449 GB, free: 96.28 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/8.856, allocations: 339.7 kB / 3.45 GB, free: 96.27 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003473/8.859, allocations: 1.528 MB / 3.451 GB, free: 95.7 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009242/8.86, allocations: 1.179 MB / 3.452 GB, free: 94.99 MB / 0.6823 GB Notification: Performance of SimCode: time 8.71e-07/8.86, allocations: 0 / 3.452 GB, free: 94.99 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)