Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Interfaces.Examples.ConservationEquation.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.ConservationEquation,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_ConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_ConservationEquation",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.00394/0.00394, allocations: 187 kB / 7.463 MB, free: 2.238 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7112/0.7112, allocations: 133.5 MB / 141.4 MB, free: 15.65 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.866/1.866, allocations: 221.3 MB / 395 MB, free: 10.18 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.001587/0.001587, allocations: 95.16 kB / 477.8 MB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5555/0.5572, allocations: 88.43 MB / 0.5529 GB, free: 89.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.7663, allocations: 82.3 MB / 0.6333 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.313/2.079, allocations: 362.3 MB / 0.9871 GB, free: 243.2 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/2.08, allocations: 87.75 kB / 0.9872 GB, free: 243.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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.5414/2.621, allocations: 259.6 MB / 1.241 GB, free: 1.262 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/2.621, allocations: 11.98 kB / 1.241 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001176/2.622, allocations: 195 kB / 1.241 GB, free: 1.059 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.439/3.061, allocations: 12.06 MB / 1.253 GB, free: 236.3 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003263/3.062, allocations: 89.52 kB / 1.253 GB, free: 236.3 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.395e-05/3.062, allocations: 26 kB / 1.253 GB, free: 236.3 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005991/3.062, allocations: 293.6 kB / 1.253 GB, free: 236.3 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006045/3.063, allocations: 415.4 kB / 1.253 GB, free: 236.2 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/3.063, allocations: 4.656 kB / 1.253 GB, free: 236.2 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/3.063, allocations: 0 / 1.253 GB, free: 236.2 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.244e-05/3.063, allocations: 22.33 kB / 1.253 GB, free: 236.2 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002911/3.066, allocations: 2.222 MB / 1.256 GB, free: 234.8 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004579/3.067, allocations: 268.7 kB / 1.256 GB, free: 234.8 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002322/3.067, allocations: 175 kB / 1.256 GB, free: 234.8 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000266/3.067, allocations: 335.7 kB / 1.256 GB, free: 234.4 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002915/3.067, allocations: 254 kB / 1.257 GB, free: 234.3 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=33): time 1.663e-06/3.067, allocations: 0 / 1.257 GB, free: 234.3 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33): time 0.0009965/3.068, allocations: 434.7 kB / 1.257 GB, free: 234.3 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/3.068, allocations: 84.64 kB / 1.257 GB, free: 234.2 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003543/3.069, allocations: 369.3 kB / 1.257 GB, free: 234.1 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/3.069, allocations: 32.73 kB / 1.258 GB, free: 234 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/3.069, allocations: 214.2 kB / 1.258 GB, free: 233.9 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.496e-05/3.069, allocations: 99.28 kB / 1.258 GB, free: 233.9 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.928e-05/3.069, allocations: 0 / 1.258 GB, free: 233.9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.108e-05/3.069, allocations: 356.6 kB / 1.258 GB, free: 233.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/3.069, allocations: 124.7 kB / 1.258 GB, free: 233.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/3.07, allocations: 215.1 kB / 1.258 GB, free: 233.4 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003569/3.07, allocations: 168.9 kB / 1.259 GB, free: 233.4 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/3.07, allocations: 0 / 1.259 GB, free: 233.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008315/3.071, allocations: 488.7 kB / 1.259 GB, free: 233.4 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001514/3.071, allocations: 0.6125 MB / 1.26 GB, free: 232.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/3.071, allocations: 0 / 1.26 GB, free: 232.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001936/3.071, allocations: 55.25 kB / 1.26 GB, free: 232.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003736/3.071, allocations: 91.22 kB / 1.26 GB, free: 232.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004129/3.072, allocations: 0.6044 MB / 1.26 GB, free: 232.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005799/3.073, allocations: 74 kB / 1.261 GB, free: 232.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-05/3.073, allocations: 21.69 kB / 1.261 GB, free: 232.2 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.933e-06/3.073, allocations: 3.969 kB / 1.261 GB, free: 232.2 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007034/3.073, allocations: 375.2 kB / 1.261 GB, free: 232.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.755e-06/3.073, allocations: 6.562 kB / 1.261 GB, free: 232.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001455/3.073, allocations: 46.09 kB / 1.261 GB, free: 232.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000377/3.074, allocations: 85.14 kB / 1.261 GB, free: 232.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/3.075, allocations: 1.496 MB / 1.262 GB, free: 230.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005224/3.076, allocations: 72.58 kB / 1.263 GB, free: 230.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.02e-05/3.076, allocations: 22.05 kB / 1.263 GB, free: 230.9 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (32): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001866/3.076, allocations: 144.9 kB / 1.263 GB, free: 230.8 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.859e-05/3.076, allocations: 60.5 kB / 1.263 GB, free: 230.7 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/3.077, allocations: 0.4976 MB / 1.263 GB, free: 230.7 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/3.077, allocations: 3.969 kB / 1.263 GB, free: 230.7 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/3.077, allocations: 0 / 1.263 GB, free: 230.7 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007485/3.078, allocations: 0.6368 MB / 1.264 GB, free: 230.3 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/3.079, allocations: 1.091 MB / 1.265 GB, free: 230 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/3.079, allocations: 3.969 kB / 1.265 GB, free: 230 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003566/3.08, allocations: 75.42 kB / 1.265 GB, free: 230 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.715e-05/3.08, allocations: 33.81 kB / 1.265 GB, free: 230 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.663e-05/3.08, allocations: 14.83 kB / 1.265 GB, free: 230 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002811/3.08, allocations: 0.5739 MB / 1.266 GB, free: 229.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/3.08, allocations: 10.48 kB / 1.266 GB, free: 229.5 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001061/3.081, allocations: 0.8184 MB / 1.266 GB, free: 229.2 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001452/3.083, allocations: 1.415 MB / 1.268 GB, free: 228.6 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002708/3.083, allocations: 189.3 kB / 1.268 GB, free: 228.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.478e-05/3.083, allocations: 7.688 kB / 1.268 GB, free: 228.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006011/3.084, allocations: 65.5 kB / 1.268 GB, free: 228.5 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.497e-05/3.084, allocations: 25.28 kB / 1.268 GB, free: 228.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.921e-05/3.084, allocations: 21.3 kB / 1.268 GB, free: 228.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0003204/3.084, allocations: 289.5 kB / 1.268 GB, free: 228.4 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002786/3.087, allocations: 448.1 kB / 1.269 GB, free: 228.4 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * 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 (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001206/3.088, allocations: 415.8 kB / 1.269 GB, free: 228.3 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001356/3.09, allocations: 0.7037 MB / 1.27 GB, free: 228.1 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/3.09, allocations: 0 / 1.27 GB, free: 228.1 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004177/3.09, allocations: 245.3 kB / 1.27 GB, free: 228.1 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/3.091, allocations: 210.8 kB / 1.27 GB, free: 228.1 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/3.093, allocations: 0.7749 MB / 1.271 GB, free: 227.8 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005927/3.094, allocations: 0.9519 MB / 1.272 GB, free: 227.1 MB / 0.6823 GB Notification: Performance of SimCode: time 8.92e-07/3.094, allocations: 0 / 1.272 GB, free: 227.1 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.ConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_ConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_ConservationEquation.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)