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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001082, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.062/1.062, allocations: 133.6 MB / 141.6 MB, free: 2.926 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.82/1.82, allocations: 221.5 MB / 395.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001143, allocations: 102.3 kB / 478.2 MB, free: 1.324 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 4.554e-05/4.591e-05, allocations: 7.984 kB / 0.5535 GB, free: 8.957 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6118/0.6119, allocations: 82.31 MB / 0.6339 GB, free: 40.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.168/6.78, allocations: 2.117 GB / 2.751 GB, free: 198.2 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/6.78, allocations: 86.44 kB / 2.751 GB, free: 198.2 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 2.162/8.942, allocations: 0.6535 GB / 3.405 GB, free: 59.37 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.743e-06/8.942, allocations: 0 / 3.405 GB, free: 59.37 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.203e-05/8.942, allocations: 35.98 kB / 3.405 GB, free: 59.34 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 0.004136/8.946, allocations: 1.481 MB / 3.406 GB, free: 57.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/8.946, allocations: 19.2 kB / 3.406 GB, free: 57.78 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002641/8.949, allocations: 0.5293 MB / 3.407 GB, free: 57.25 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02417/8.973, allocations: 13.12 MB / 3.419 GB, free: 43.96 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001137/8.974, allocations: 285.1 kB / 3.42 GB, free: 43.68 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002081/8.975, allocations: 43.95 kB / 3.42 GB, free: 43.64 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001213/8.976, allocations: 0.7218 MB / 3.42 GB, free: 42.91 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/8.977, allocations: 0.8949 MB / 3.421 GB, free: 41.98 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/8.977, allocations: 0 / 3.421 GB, free: 41.98 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.997e-05/8.977, allocations: 4 kB / 3.421 GB, free: 41.98 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.793e-05/8.977, allocations: 37.3 kB / 3.421 GB, free: 41.94 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005537/8.983, allocations: 3.098 MB / 3.424 GB, free: 38.78 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007879/8.984, allocations: 0.5546 MB / 3.425 GB, free: 38.21 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003757/8.984, allocations: 346.3 kB / 3.425 GB, free: 37.88 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007152/8.985, allocations: 1.033 MB / 3.426 GB, free: 36.62 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005437/8.985, allocations: 473.8 kB / 3.427 GB, free: 36.12 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=57): time 2.715e-06/8.985, allocations: 0 / 3.427 GB, free: 36.12 MB / 0.6823 GB Notification: Performance of matching and sorting (n=57): time 0.001738/8.987, allocations: 0.7841 MB / 3.427 GB, free: 35.34 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/8.987, allocations: 144.8 kB / 3.428 GB, free: 35.17 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006952/8.988, allocations: 0.649 MB / 3.428 GB, free: 34.51 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.737e-05/8.988, allocations: 29.7 kB / 3.428 GB, free: 34.47 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002636/8.988, allocations: 460.2 kB / 3.429 GB, free: 34.02 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/8.988, allocations: 181.3 kB / 3.429 GB, free: 33.84 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/8.988, allocations: 4 kB / 3.429 GB, free: 33.83 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.009e-05/8.988, allocations: 326 kB / 3.429 GB, free: 33.51 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/8.989, allocations: 297.2 kB / 3.429 GB, free: 33.21 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004929/8.989, allocations: 0.5006 MB / 3.43 GB, free: 32.64 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007329/8.99, allocations: 400.4 kB / 3.43 GB, free: 32.25 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/8.99, allocations: 0 / 3.43 GB, free: 32.25 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001444/8.992, allocations: 0.9246 MB / 3.431 GB, free: 31.31 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/8.992, allocations: 34.33 kB / 3.431 GB, free: 31.27 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/8.992, allocations: 4 kB / 3.431 GB, free: 31.27 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/8.992, allocations: 7.938 kB / 3.431 GB, free: 31.26 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009703/8.993, allocations: 219.8 kB / 3.432 GB, free: 31.05 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/8.993, allocations: 11.98 kB / 3.432 GB, free: 31.04 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/8.994, allocations: 263.3 kB / 3.432 GB, free: 30.78 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/8.994, allocations: 47.97 kB / 3.432 GB, free: 30.73 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.0002197/8.995, allocations: 162.7 kB / 3.432 GB, free: 30.56 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001195/8.996, allocations: 0.7544 MB / 3.433 GB, free: 29.8 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/8.996, allocations: 90.88 kB / 3.433 GB, free: 29.71 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/8.997, allocations: 0.8542 MB / 3.434 GB, free: 28.85 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/8.997, allocations: 8 kB / 3.434 GB, free: 28.84 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/8.997, allocations: 0 / 3.434 GB, free: 28.84 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/8.997, allocations: 7.984 kB / 3.434 GB, free: 28.83 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003978/9.001, allocations: 2.955 MB / 3.437 GB, free: 25.74 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/9.001, allocations: 8 kB / 3.437 GB, free: 25.73 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005908/9.002, allocations: 124.3 kB / 3.437 GB, free: 25.61 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.609e-05/9.002, allocations: 12 kB / 3.437 GB, free: 25.6 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.546e-05/9.002, allocations: 27.92 kB / 3.437 GB, free: 25.57 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.084e-05/9.002, allocations: 11.98 kB / 3.437 GB, free: 25.56 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.307e-06/9.002, allocations: 11.94 kB / 3.437 GB, free: 25.55 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/9.004, allocations: 1.567 MB / 3.438 GB, free: 23.69 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004633/9.004, allocations: 299.7 kB / 3.439 GB, free: 23.38 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000136/9.005, allocations: 15.98 kB / 3.439 GB, free: 23.36 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/9.006, allocations: 115.9 kB / 3.439 GB, free: 23.25 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/9.006, allocations: 63.73 kB / 3.439 GB, free: 23.18 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.754e-05/9.006, allocations: 47.97 kB / 3.439 GB, free: 23.14 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0006509/9.006, allocations: 0.5031 MB / 3.439 GB, free: 22.64 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.9e-07/9.006, allocations: 0 / 3.439 GB, free: 22.64 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001627/9.008, allocations: 419.2 kB / 3.44 GB, free: 22.23 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.004914/9.013, allocations: 5.84 MB / 3.445 GB, free: 16.08 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001279/9.014, allocations: 0.7982 MB / 3.446 GB, free: 15.28 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/9.014, allocations: 128 / 3.446 GB, free: 15.28 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004943/9.015, allocations: 461.2 kB / 3.447 GB, free: 14.82 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/9.017, allocations: 358 kB / 3.447 GB, free: 14.47 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003448/9.02, allocations: 1.711 MB / 3.449 GB, free: 12.62 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004469/9.021, allocations: 1.088 MB / 3.45 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0009637/9.022, allocations: 245.9 kB / 3.45 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004607/9.022, allocations: 351.3 kB / 3.45 GB, free: 10.92 MB / 0.6823 GB Notification: Performance of SimCode: time 7.62e-07/9.022, allocations: 0 / 3.45 GB, free: 10.92 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.582/9.604, allocations: 33.78 MB / 3.483 GB, free: 126.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002264/9.605, allocations: 186.6 kB / 3.483 GB, free: 126.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.514/13.12, allocations: 3.891 kB / 3.483 GB, free: 126.6 MB / 0.698 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)