Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8951/0.8951, allocations: 143.4 MB / 158.3 MB, free: 5.812 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 171.1 kB / 191.5 MB, free: 5.773 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.647/1.647, allocations: 223.2 MB / 447.7 MB, free: 4.77 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.001057/0.001057, allocations: 88.34 kB / 0.5187 GB, free: 1.133 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002143/0.002144, allocations: 263.4 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007301/0.0007301, allocations: 11.66 kB / 0.6929 GB, free: 59.63 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2253, allocations: 82.8 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8941/1.119, allocations: 360.4 MB / 1.126 GB, free: 9.863 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/1.12, allocations: 93.06 kB / 1.126 GB, free: 9.812 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.9613/2.081, allocations: 259.8 MB / 1.38 GB, free: 73.64 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.655e-06/2.081, allocations: 3.938 kB / 1.38 GB, free: 73.63 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.204e-05/2.081, allocations: 20 kB / 1.38 GB, free: 73.61 MB / 0.7136 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.002001/2.083, allocations: 1.016 MB / 1.381 GB, free: 72.54 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/2.083, allocations: 11.97 kB / 1.381 GB, free: 72.53 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.667e-05/2.083, allocations: 78.52 kB / 1.381 GB, free: 72.45 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007554/2.084, allocations: 179 kB / 1.381 GB, free: 72.27 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02279/2.107, allocations: 12.1 MB / 1.393 GB, free: 60.01 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003199/2.107, allocations: 100.9 kB / 1.393 GB, free: 59.91 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.819e-05/2.107, allocations: 36 kB / 1.393 GB, free: 59.88 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009819/2.108, allocations: 0.5085 MB / 1.393 GB, free: 59.34 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/2.108, allocations: 3.906 kB / 1.393 GB, free: 59.34 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.745e-05/2.108, allocations: 20 kB / 1.393 GB, free: 59.32 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.103e-05/2.108, allocations: 16.66 kB / 1.393 GB, free: 59.3 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008834/2.109, allocations: 418.6 kB / 1.394 GB, free: 58.89 MB / 0.7136 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002724/2.112, allocations: 2.262 MB / 1.396 GB, free: 56.42 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008874/2.113, allocations: 391 kB / 1.396 GB, free: 56.03 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002727/2.113, allocations: 344.6 kB / 1.397 GB, free: 55.62 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005422/2.114, allocations: 308.1 kB / 1.397 GB, free: 55.3 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=33): time 2.595e-06/2.114, allocations: 0 / 1.397 GB, free: 55.3 MB / 0.7136 GB Notification: Performance of matching and sorting (n=33): time 0.001984/2.116, allocations: 0.9617 MB / 1.398 GB, free: 54.29 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/2.116, allocations: 85.11 kB / 1.398 GB, free: 54.19 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004456/2.116, allocations: 430 kB / 1.398 GB, free: 53.76 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.374e-05/2.116, allocations: 41.7 kB / 1.398 GB, free: 53.71 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/2.117, allocations: 276.4 kB / 1.399 GB, free: 53.44 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.891e-05/2.117, allocations: 110.5 kB / 1.399 GB, free: 53.33 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.827e-05/2.117, allocations: 8 kB / 1.399 GB, free: 53.32 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.317e-05/2.117, allocations: 358.8 kB / 1.399 GB, free: 52.96 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000388/2.117, allocations: 179.8 kB / 1.399 GB, free: 52.79 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004373/2.118, allocations: 287 kB / 1.4 GB, free: 52.47 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004096/2.118, allocations: 221.5 kB / 1.4 GB, free: 52.25 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/2.118, allocations: 4 kB / 1.4 GB, free: 52.24 MB / 0.7136 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001163/2.119, allocations: 0.6402 MB / 1.4 GB, free: 51.59 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002232/2.119, allocations: 0.6454 MB / 1.401 GB, free: 50.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/2.119, allocations: 7.938 kB / 1.401 GB, free: 50.88 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002076/2.12, allocations: 48.83 kB / 1.401 GB, free: 50.83 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003792/2.12, allocations: 87.88 kB / 1.401 GB, free: 50.74 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000392/2.12, allocations: 0.5952 MB / 1.402 GB, free: 50.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006485/2.121, allocations: 79.69 kB / 1.402 GB, free: 50.04 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.91e-05/2.121, allocations: 20 kB / 1.402 GB, free: 50.02 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/2.121, allocations: 6.031 kB / 1.402 GB, free: 50.02 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001112/2.122, allocations: 0.5721 MB / 1.402 GB, free: 49.44 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/2.122, allocations: 4 kB / 1.402 GB, free: 49.43 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001441/2.122, allocations: 52.97 kB / 1.402 GB, free: 49.38 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/2.123, allocations: 83.89 kB / 1.403 GB, free: 49.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/2.124, allocations: 1.631 MB / 1.404 GB, free: 47.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00058/2.125, allocations: 83.59 kB / 1.404 GB, free: 47.43 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.415e-05/2.125, allocations: 27.97 kB / 1.404 GB, free: 47.41 MB / 0.7136 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 () * Number of clocked 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.0003923/2.125, allocations: 298.7 kB / 1.404 GB, free: 47.1 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.098e-05/2.125, allocations: 55.34 kB / 1.405 GB, free: 47.04 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/2.127, allocations: 0.6706 MB / 1.405 GB, free: 46.35 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/2.127, allocations: 8 kB / 1.405 GB, free: 46.34 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/2.127, allocations: 3.938 kB / 1.405 GB, free: 46.34 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001067/2.128, allocations: 0.8288 MB / 1.406 GB, free: 45.43 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002017/2.13, allocations: 1.334 MB / 1.407 GB, free: 44.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/2.13, allocations: 0 / 1.407 GB, free: 44.02 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003393/2.13, allocations: 72.03 kB / 1.407 GB, free: 43.95 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001201/2.13, allocations: 44.72 kB / 1.407 GB, free: 43.91 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/2.13, allocations: 15.98 kB / 1.407 GB, free: 43.89 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002612/2.13, allocations: 0.5721 MB / 1.408 GB, free: 43.29 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/2.131, allocations: 7.984 kB / 1.408 GB, free: 43.29 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/2.132, allocations: 1.048 MB / 1.409 GB, free: 42.18 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002725/2.132, allocations: 188.3 kB / 1.409 GB, free: 41.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.141e-05/2.133, allocations: 11.94 kB / 1.409 GB, free: 41.97 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000551/2.133, allocations: 67.91 kB / 1.409 GB, free: 41.9 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.155e-05/2.133, allocations: 23.92 kB / 1.409 GB, free: 41.88 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.716e-05/2.133, allocations: 23.98 kB / 1.409 GB, free: 41.86 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0003312/2.134, allocations: 346.8 kB / 1.41 GB, free: 41.52 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.31e-07/2.134, allocations: 0 / 1.41 GB, free: 41.52 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001316/2.135, allocations: 379.4 kB / 1.41 GB, free: 41.15 MB / 0.7136 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) * Number of clocked states: 0 () * 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.002659/2.138, allocations: 2.057 MB / 1.412 GB, free: 39.04 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001982/2.14, allocations: 0.9858 MB / 1.413 GB, free: 38.02 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/2.14, allocations: 0 / 1.413 GB, free: 38.02 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005853/2.14, allocations: 327.4 kB / 1.413 GB, free: 37.68 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/2.141, allocations: 245.4 kB / 1.414 GB, free: 37.45 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005726/2.147, allocations: 4.337 MB / 1.418 GB, free: 33.02 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/2.148, allocations: 0.8901 MB / 1.419 GB, free: 32.1 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0005824/2.148, allocations: 128.2 kB / 1.419 GB, free: 31.97 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/2.148, allocations: 191.4 kB / 1.419 GB, free: 31.79 MB / 0.7136 GB Notification: Performance of SimCode: time 1.954e-06/2.148, allocations: 0 / 1.419 GB, free: 31.79 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/2.18, allocations: 17.86 MB / 1.436 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/2.18, allocations: 278.3 kB / 1.437 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/4.758, allocations: 0 / 1.437 GB, free: 13.88 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)