Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",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.8277/0.8277, allocations: 141.8 MB / 149.3 MB, free: 9.25 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.00123/0.00123, allocations: 183.8 kB / 182.2 MB, free: 9.469 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.678/1.678, allocations: 221.5 MB / 436.4 MB, free: 13.39 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.0009336/0.0009337, allocations: 88.06 kB / 0.5074 GB, free: 10.21 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001792/0.001792, allocations: 278.8 kB / 0.5889 GB, free: 54.7 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.698e-05/2.702e-05, allocations: 4 kB / 0.6766 GB, free: 12.77 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5628/0.5628, allocations: 82.77 MB / 0.7575 GB, free: 31.96 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.111/6.674, allocations: 2.114 GB / 2.872 GB, free: 227.6 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/6.675, allocations: 83.95 kB / 2.872 GB, free: 227.6 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.288/8.963, allocations: 0.6536 GB / 3.526 GB, free: 98.89 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.523e-06/8.963, allocations: 4 kB / 3.526 GB, free: 98.88 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.464e-05/8.963, allocations: 42.03 kB / 3.526 GB, free: 98.85 MB / 0.698 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.004248/8.967, allocations: 1.489 MB / 3.527 GB, free: 97.32 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/8.967, allocations: 8.031 kB / 3.527 GB, free: 97.32 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002752/8.97, allocations: 0.5326 MB / 3.528 GB, free: 96.79 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02475/8.995, allocations: 13.1 MB / 3.54 GB, free: 83.7 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001133/8.996, allocations: 293 kB / 3.541 GB, free: 83.41 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003122/8.996, allocations: 40 kB / 3.541 GB, free: 83.38 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001235/8.997, allocations: 0.7218 MB / 3.541 GB, free: 82.66 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/8.999, allocations: 0.8949 MB / 3.542 GB, free: 81.71 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/8.999, allocations: 3.953 kB / 3.542 GB, free: 81.71 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.159e-05/8.999, allocations: 4 kB / 3.542 GB, free: 81.71 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.856e-05/8.999, allocations: 29.3 kB / 3.542 GB, free: 81.68 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005809/9.005, allocations: 3.115 MB / 3.545 GB, free: 78.54 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008006/9.006, allocations: 0.5546 MB / 3.546 GB, free: 77.98 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003956/9.006, allocations: 342.3 kB / 3.546 GB, free: 77.64 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007436/9.007, allocations: 1.038 MB / 3.547 GB, free: 76.39 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005853/9.007, allocations: 473.9 kB / 3.548 GB, free: 75.89 MB / 0.698 GB Notification: Performance of pre-optimization done (n=57): time 5.361e-06/9.007, allocations: 3.984 kB / 3.548 GB, free: 75.89 MB / 0.698 GB Notification: Performance of matching and sorting (n=57): time 0.001774/9.009, allocations: 0.7833 MB / 3.548 GB, free: 75.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/9.009, allocations: 140.8 kB / 3.549 GB, free: 74.93 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000746/9.01, allocations: 0.6452 MB / 3.549 GB, free: 74.29 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.61e-05/9.01, allocations: 33.64 kB / 3.549 GB, free: 74.25 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002973/9.01, allocations: 460.2 kB / 3.55 GB, free: 73.79 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/9.01, allocations: 185.2 kB / 3.55 GB, free: 73.61 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.607e-05/9.011, allocations: 0 / 3.55 GB, free: 73.61 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.001e-05/9.011, allocations: 333.9 kB / 3.55 GB, free: 73.27 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003764/9.011, allocations: 301.2 kB / 3.551 GB, free: 72.98 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004847/9.011, allocations: 0.4887 MB / 3.551 GB, free: 72.41 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007419/9.012, allocations: 412.4 kB / 3.551 GB, free: 72.01 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/9.012, allocations: 0 / 3.551 GB, free: 72.01 MB / 0.698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00146/9.014, allocations: 0.9126 MB / 3.552 GB, free: 71.09 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.395e-05/9.014, allocations: 34.48 kB / 3.552 GB, free: 71.05 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/9.014, allocations: 4.375 kB / 3.552 GB, free: 71.05 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/9.014, allocations: 8 kB / 3.552 GB, free: 71.04 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000958/9.015, allocations: 215.7 kB / 3.553 GB, free: 70.83 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/9.015, allocations: 11.98 kB / 3.553 GB, free: 70.82 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/9.016, allocations: 259.3 kB / 3.553 GB, free: 70.56 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/9.016, allocations: 47.97 kB / 3.553 GB, free: 70.52 MB / 0.698 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.0002355/9.017, allocations: 164.2 kB / 3.553 GB, free: 70.34 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001201/9.018, allocations: 0.7551 MB / 3.554 GB, free: 69.59 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/9.018, allocations: 86.97 kB / 3.554 GB, free: 69.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/9.019, allocations: 0.8579 MB / 3.555 GB, free: 68.63 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/9.019, allocations: 8 kB / 3.555 GB, free: 68.62 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/9.019, allocations: 0 / 3.555 GB, free: 68.62 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/9.019, allocations: 7.938 kB / 3.555 GB, free: 68.62 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003626/9.023, allocations: 2.954 MB / 3.558 GB, free: 65.54 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/9.023, allocations: 11.97 kB / 3.558 GB, free: 65.52 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005751/9.024, allocations: 127.8 kB / 3.558 GB, free: 65.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.554e-05/9.024, allocations: 16.33 kB / 3.558 GB, free: 65.38 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.371e-05/9.024, allocations: 23.98 kB / 3.558 GB, free: 65.36 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.848e-06/9.024, allocations: 15.98 kB / 3.558 GB, free: 65.34 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/9.024, allocations: 11.94 kB / 3.558 GB, free: 65.33 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/9.025, allocations: 1.56 MB / 3.559 GB, free: 63.48 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004313/9.026, allocations: 303.6 kB / 3.56 GB, free: 63.16 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001335/9.026, allocations: 19.98 kB / 3.56 GB, free: 63.14 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/9.027, allocations: 119.9 kB / 3.56 GB, free: 63.02 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.975e-05/9.027, allocations: 63.73 kB / 3.56 GB, free: 62.96 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-05/9.027, allocations: 43.97 kB / 3.56 GB, free: 62.92 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006488/9.028, allocations: 0.4991 MB / 3.56 GB, free: 62.43 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.41e-07/9.028, allocations: 0 / 3.56 GB, free: 62.43 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001833/9.03, allocations: 407.4 kB / 3.561 GB, free: 62.03 MB / 0.698 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.00527/9.035, allocations: 5.85 MB / 3.566 GB, free: 56.05 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001298/9.036, allocations: 0.8013 MB / 3.567 GB, free: 55.24 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/9.036, allocations: 4 kB / 3.567 GB, free: 55.23 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004873/9.037, allocations: 461.4 kB / 3.568 GB, free: 54.77 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002029/9.039, allocations: 349.6 kB / 3.568 GB, free: 54.43 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003843/9.043, allocations: 1.722 MB / 3.57 GB, free: 52.57 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005322/9.043, allocations: 1.084 MB / 3.571 GB, free: 51.46 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001024/9.044, allocations: 245.9 kB / 3.571 GB, free: 51.22 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004475/9.045, allocations: 351.2 kB / 3.571 GB, free: 50.88 MB / 0.698 GB Notification: Performance of SimCode: time 8.52e-07/9.045, allocations: 4 kB / 3.571 GB, free: 50.88 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0628/9.108, allocations: 33.81 MB / 3.604 GB, free: 17.16 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/9.108, allocations: 212.5 kB / 3.604 GB, free: 16.88 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.244/12.35, allocations: 1.25 kB / 3.604 GB, free: 16.88 MB / 0.698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)