Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_dev_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.004546/0.004546, allocations: 178.5 kB / 7.455 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.7285/0.7285, allocations: 133.5 MB / 141.4 MB, free: 15.64 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.594/1.594, allocations: 221.3 MB / 395 MB, free: 10.2 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.001064/0.001065, allocations: 100.7 kB / 477.8 MB, free: 10.77 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5103/0.5114, allocations: 88.43 MB / 0.5529 GB, free: 89.16 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.7044, allocations: 82.3 MB / 0.6333 GB, free: 13.98 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.68/5.384, allocations: 2.117 GB / 2.75 GB, free: 131.2 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/5.384, allocations: 83.95 kB / 2.75 GB, free: 131.1 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.508/7.892, allocations: 0.6609 GB / 3.411 GB, free: 111 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/7.892, allocations: 11.03 kB / 3.411 GB, free: 111 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00291/7.895, allocations: 0.5898 MB / 3.412 GB, free: 111 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0295/7.925, allocations: 13.2 MB / 3.425 GB, free: 110.3 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001147/7.926, allocations: 317 kB / 3.425 GB, free: 110.3 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002007/7.926, allocations: 41.03 kB / 3.425 GB, free: 110.3 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001296/7.927, allocations: 0.7385 MB / 3.426 GB, free: 110.3 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/7.929, allocations: 0.8978 MB / 3.427 GB, free: 110.2 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/7.929, allocations: 10.5 kB / 3.427 GB, free: 110.2 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.134e-05/7.929, allocations: 3.125 kB / 3.427 GB, free: 110.2 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.956e-05/7.929, allocations: 32.66 kB / 3.427 GB, free: 110.1 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006746/7.936, allocations: 3.154 MB / 3.43 GB, free: 109.3 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/7.937, allocations: 0.5413 MB / 3.43 GB, free: 109.3 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000619/7.938, allocations: 364.5 kB / 3.431 GB, free: 109.3 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009394/7.939, allocations: 1.028 MB / 3.432 GB, free: 108.2 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000792/7.939, allocations: 474.2 kB / 3.432 GB, free: 108.1 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=57): time 2.755e-06/7.939, allocations: 3.156 kB / 3.432 GB, free: 108.1 MB / 0.6823 GB Notification: Performance of matching and sorting (n=57): time 0.001879/7.941, allocations: 0.7641 MB / 3.433 GB, free: 108 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/7.941, allocations: 142.1 kB / 3.433 GB, free: 107.8 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000764/7.942, allocations: 0.6485 MB / 3.434 GB, free: 107.7 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001443/7.942, allocations: 29.33 kB / 3.434 GB, free: 107.7 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/7.943, allocations: 326.1 kB / 3.434 GB, free: 107.5 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/7.943, allocations: 179.9 kB / 3.434 GB, free: 107.4 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/7.943, allocations: 3.938 kB / 3.434 GB, free: 107.4 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.46e-05/7.943, allocations: 326.5 kB / 3.434 GB, free: 107.1 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004406/7.943, allocations: 315.9 kB / 3.435 GB, free: 107.1 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005625/7.944, allocations: 0.5053 MB / 3.435 GB, free: 106.9 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008107/7.945, allocations: 410.1 kB / 3.436 GB, free: 106.9 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/7.945, allocations: 2.719 kB / 3.436 GB, free: 106.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001592/7.946, allocations: 0.8996 MB / 3.437 GB, free: 106.8 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/7.946, allocations: 7 kB / 3.437 GB, free: 106.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/7.946, allocations: 6.781 kB / 3.437 GB, free: 106.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/7.946, allocations: 10.59 kB / 3.437 GB, free: 106.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/7.947, allocations: 226.6 kB / 3.437 GB, free: 106.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/7.947, allocations: 9.594 kB / 3.437 GB, free: 106.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/7.949, allocations: 284.5 kB / 3.437 GB, free: 106.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/7.949, allocations: 52.06 kB / 3.437 GB, free: 106.8 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.000245/7.949, allocations: 160 kB / 3.437 GB, free: 106.7 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/7.95, allocations: 94.75 kB / 3.437 GB, free: 106.6 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/7.951, allocations: 0.8362 MB / 3.438 GB, free: 106.6 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/7.951, allocations: 3.438 kB / 3.438 GB, free: 106.6 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/7.951, allocations: 10.94 kB / 3.438 GB, free: 106.6 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/7.951, allocations: 0 / 3.438 GB, free: 106.6 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00412/7.955, allocations: 2.967 MB / 3.441 GB, free: 105.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/7.955, allocations: 6.656 kB / 3.441 GB, free: 105.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006477/7.956, allocations: 130.2 kB / 3.441 GB, free: 105.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.408e-05/7.956, allocations: 20.09 kB / 3.441 GB, free: 105.9 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.87e-05/7.956, allocations: 22.92 kB / 3.441 GB, free: 105.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.507e-06/7.956, allocations: 11.34 kB / 3.441 GB, free: 105.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.097e-06/7.956, allocations: 11.31 kB / 3.441 GB, free: 105.9 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001501/7.958, allocations: 1.524 MB / 3.443 GB, free: 104.9 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0017/7.959, allocations: 2.01 MB / 3.445 GB, free: 103.5 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004629/7.96, allocations: 309.2 kB / 3.445 GB, free: 103.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/7.96, allocations: 11.66 kB / 3.445 GB, free: 103.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/7.961, allocations: 131.1 kB / 3.445 GB, free: 103.3 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.238e-05/7.961, allocations: 59.75 kB / 3.445 GB, free: 103.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.433e-05/7.961, allocations: 42.16 kB / 3.445 GB, free: 103.3 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0005597/7.962, allocations: 0.4988 MB / 3.446 GB, free: 103.2 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002354/7.964, allocations: 0.5946 MB / 3.446 GB, free: 103.2 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.001923/7.966, allocations: 1.746 MB / 3.448 GB, free: 102.8 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0011/7.967, allocations: 0.7744 MB / 3.449 GB, free: 102.8 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/7.967, allocations: 0 / 3.449 GB, free: 102.8 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004837/7.968, allocations: 451.3 kB / 3.449 GB, free: 102.7 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/7.97, allocations: 346.2 kB / 3.45 GB, free: 102.7 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002917/7.973, allocations: 1.534 MB / 3.451 GB, free: 102.1 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008312/7.973, allocations: 1.174 MB / 3.452 GB, free: 101.4 MB / 0.6823 GB Notification: Performance of SimCode: time 5.21e-07/7.973, allocations: 0 / 3.452 GB, free: 101.4 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)