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.9438/0.9438, allocations: 143.3 MB / 158.3 MB, free: 5.871 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.002009/0.002008, allocations: 173.1 kB / 191.5 MB, free: 5.801 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.799/1.799, allocations: 223.1 MB / 447.7 MB, free: 4.848 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.001263/0.001264, allocations: 88.33 kB / 0.5187 GB, free: 1.211 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00196/0.001961, allocations: 276.4 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004855/0.0004856, allocations: 13.53 kB / 0.6929 GB, free: 59.57 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2155, allocations: 82.8 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.602/5.817, allocations: 2.115 GB / 2.889 GB, free: 184 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/5.818, allocations: 90.27 kB / 2.889 GB, free: 184 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.105/7.923, allocations: 0.6613 GB / 3.55 GB, free: 95.57 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.323e-06/7.923, allocations: 0 / 3.55 GB, free: 95.57 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001139/7.923, allocations: 43.97 kB / 3.55 GB, free: 95.53 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.005101/7.928, allocations: 1.637 MB / 3.552 GB, free: 93.84 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/7.928, allocations: 8.031 kB / 3.552 GB, free: 93.84 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002344/7.929, allocations: 114.4 kB / 3.552 GB, free: 93.71 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002746/7.931, allocations: 0.544 MB / 3.553 GB, free: 93.17 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02509/7.956, allocations: 13.23 MB / 3.566 GB, free: 79.78 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001185/7.958, allocations: 309.2 kB / 3.566 GB, free: 79.48 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003126/7.958, allocations: 71.98 kB / 3.566 GB, free: 79.41 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002381/7.96, allocations: 1.171 MB / 3.567 GB, free: 78.2 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/7.96, allocations: 0 / 3.567 GB, free: 78.2 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.605e-05/7.96, allocations: 28 kB / 3.567 GB, free: 78.17 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-05/7.961, allocations: 37.3 kB / 3.567 GB, free: 78.13 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002622/7.963, allocations: 1.157 MB / 3.568 GB, free: 76.98 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005981/7.969, allocations: 3.326 MB / 3.571 GB, free: 73.58 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/7.971, allocations: 0.6919 MB / 3.572 GB, free: 72.88 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008218/7.972, allocations: 1.029 MB / 3.573 GB, free: 71.63 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000907/7.972, allocations: 0.5299 MB / 3.574 GB, free: 71.07 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=57): time 2.715e-06/7.972, allocations: 0 / 3.574 GB, free: 71.07 MB / 0.7136 GB Notification: Performance of matching and sorting (n=57): time 0.002935/7.975, allocations: 1.371 MB / 3.575 GB, free: 69.67 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.523e-05/7.975, allocations: 148.8 kB / 3.575 GB, free: 69.49 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/7.977, allocations: 1.085 MB / 3.576 GB, free: 68.39 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001641/7.977, allocations: 37.7 kB / 3.576 GB, free: 68.35 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003137/7.978, allocations: 449.8 kB / 3.577 GB, free: 67.91 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/7.978, allocations: 193.2 kB / 3.577 GB, free: 67.71 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/7.978, allocations: 12 kB / 3.577 GB, free: 67.7 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.985e-05/7.978, allocations: 326 kB / 3.577 GB, free: 67.38 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/7.979, allocations: 0.4891 MB / 3.578 GB, free: 66.89 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/7.98, allocations: 0.6952 MB / 3.578 GB, free: 66.12 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/7.982, allocations: 0.5607 MB / 3.579 GB, free: 65.55 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/7.982, allocations: 0 / 3.579 GB, free: 65.55 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002908/7.985, allocations: 1.328 MB / 3.58 GB, free: 64.21 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.128e-05/7.985, allocations: 37.69 kB / 3.58 GB, free: 64.17 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/7.985, allocations: 4 kB / 3.58 GB, free: 64.16 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/7.985, allocations: 4 kB / 3.58 GB, free: 64.16 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009388/7.986, allocations: 219.9 kB / 3.58 GB, free: 63.95 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/7.986, allocations: 8 kB / 3.58 GB, free: 63.94 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/7.987, allocations: 306.9 kB / 3.581 GB, free: 63.64 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/7.987, allocations: 51.92 kB / 3.581 GB, free: 63.59 MB / 0.7136 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 () * Number of clocked 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.0006046/7.988, allocations: 339.1 kB / 3.581 GB, free: 63.24 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/7.988, allocations: 118.6 kB / 3.581 GB, free: 63.12 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001987/7.99, allocations: 1.054 MB / 3.582 GB, free: 62.05 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/7.99, allocations: 7.938 kB / 3.582 GB, free: 62.05 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/7.99, allocations: 0 / 3.582 GB, free: 62.05 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/7.99, allocations: 11.98 kB / 3.582 GB, free: 62.04 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004226/7.994, allocations: 3.257 MB / 3.585 GB, free: 58.62 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/7.995, allocations: 8 kB / 3.585 GB, free: 58.62 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005833/7.995, allocations: 127.8 kB / 3.586 GB, free: 58.49 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-05/7.995, allocations: 15.95 kB / 3.586 GB, free: 58.48 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.739e-05/7.995, allocations: 27.98 kB / 3.586 GB, free: 58.45 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/7.995, allocations: 15.94 kB / 3.586 GB, free: 58.43 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/7.995, allocations: 15.94 kB / 3.586 GB, free: 58.42 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00201/7.997, allocations: 1.792 MB / 3.587 GB, free: 56.36 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005912/7.998, allocations: 335.3 kB / 3.588 GB, free: 56.01 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001577/7.998, allocations: 27.98 kB / 3.588 GB, free: 55.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/7.999, allocations: 127.9 kB / 3.588 GB, free: 55.86 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.3e-05/7.999, allocations: 55.8 kB / 3.588 GB, free: 55.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.978e-05/7.999, allocations: 47.97 kB / 3.588 GB, free: 55.75 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001371/8.001, allocations: 0.8833 MB / 3.589 GB, free: 54.86 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.2e-07/8.001, allocations: 0 / 3.589 GB, free: 54.86 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001721/8.002, allocations: 439.7 kB / 3.589 GB, free: 54.43 MB / 0.7136 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) * Number of clocked states: 0 () * 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.004708/8.007, allocations: 5.9 MB / 3.595 GB, free: 48.26 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002259/8.009, allocations: 1.082 MB / 3.596 GB, free: 47.17 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/8.009, allocations: 0 / 3.596 GB, free: 47.17 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0008196/8.01, allocations: 0.5323 MB / 3.597 GB, free: 46.62 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002417/8.013, allocations: 0.532 MB / 3.597 GB, free: 46.1 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01209/8.025, allocations: 9.21 MB / 3.606 GB, free: 36.5 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000603/8.026, allocations: 1.089 MB / 3.607 GB, free: 35.38 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001313/8.027, allocations: 276.1 kB / 3.607 GB, free: 35.1 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004818/8.027, allocations: 363.3 kB / 3.608 GB, free: 34.75 MB / 0.7136 GB Notification: Performance of SimCode: time 1.403e-06/8.027, allocations: 4 kB / 3.608 GB, free: 34.74 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5058/8.533, allocations: 51.84 MB / 3.658 GB, free: 119.5 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002333/8.533, allocations: 247.8 kB / 3.659 GB, free: 119.1 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.786/12.32, allocations: 1.031 kB / 3.659 GB, free: 119.1 MB / 0.7136 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)