Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.conf.json 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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005848/0.005848, allocations: 101.6 kB / 15.73 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 193.9 kB / 16.67 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002261/0.002261, allocations: 279.2 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9297/0.9297, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 92.22 kB / 0.6809 GB, free: 32 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.156, allocations: 86.97 MB / 0.7659 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.00282/0.1588, allocations: 1.731 MB / 0.7675 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0016/0.1604, allocations: 1.037 MB / 0.7686 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.372e-05/0.1605, allocations: 0 / 0.7686 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.637e-05/0.1606, allocations: 11.88 kB / 0.7686 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.1608, allocations: 27.72 kB / 0.7686 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006014/0.1614, allocations: 163.4 kB / 0.7688 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.1616, allocations: 103.5 kB / 0.7689 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.1617, allocations: 32.2 kB / 0.7689 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.866e-05/0.1618, allocations: 31.92 kB / 0.7689 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.951e-05/0.1619, allocations: 43.78 kB / 0.769 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.162, allocations: 4 kB / 0.769 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004408/0.1624, allocations: 195.7 kB / 0.7691 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.266e-05/0.1624, allocations: 15.94 kB / 0.7692 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.463e-05/0.1625, allocations: 39.8 kB / 0.7692 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003358/0.1629, allocations: 203.5 kB / 0.7694 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1629, allocations: 0 / 0.7694 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1629, allocations: 0 / 0.7694 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.298e-06/0.1629, allocations: 0 / 0.7694 GB, free: 5.332 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005962/0.1635, allocations: 426.9 kB / 0.7698 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.1635, allocations: 11.97 kB / 0.7698 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.844e-05/0.1636, allocations: 46.73 kB / 0.7699 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.136e-05/0.1637, allocations: 8.844 kB / 0.7699 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.1639, allocations: 184.2 kB / 0.77 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.1639, allocations: 4.375 kB / 0.77 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.1639, allocations: 4.375 kB / 0.77 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.1641, allocations: 73.73 kB / 0.7701 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1641, allocations: 0 / 0.7701 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.1641, allocations: 4 kB / 0.7701 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.1641, allocations: 4 kB / 0.7701 GB, free: 4.48 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001246/0.1643, allocations: 51.91 kB / 0.7702 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005273/0.1648, allocations: 392 kB / 0.7705 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001134/0.1649, allocations: 46.5 kB / 0.7706 GB, free: 3.93 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.915e-05/0.165, allocations: 20.8 kB / 0.7706 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001129/0.1651, allocations: 93.19 kB / 0.7707 GB, free: 3.797 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.1652, allocations: 34.56 kB / 0.7707 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.1652, allocations: 0 / 0.7707 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0002774/0.1655, allocations: 85.56 kB / 0.7708 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.1655, allocations: 55.34 kB / 0.7709 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.1656, allocations: 140.2 kB / 0.771 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.1657, allocations: 25.7 kB / 0.771 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.286e-05/0.1657, allocations: 112 kB / 0.7711 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.1657, allocations: 3.906 kB / 0.7711 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.1658, allocations: 17.7 kB / 0.7712 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1659, allocations: 318.8 kB / 0.7715 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.594e-05/0.1659, allocations: 15.98 kB / 0.7715 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-05/0.166, allocations: 15.98 kB / 0.7715 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.42e-05/0.1661, allocations: 32.84 kB / 0.7715 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1661, allocations: 4 kB / 0.7715 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001423/0.1663, allocations: 73.58 kB / 0.7716 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1663, allocations: 8 kB / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.1663, allocations: 3.938 kB / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1663, allocations: 0 / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.1664, allocations: 7.984 kB / 0.7716 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1664, allocations: 7.938 kB / 0.7716 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.296e-05/0.1665, allocations: 0 / 0.7716 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.1665, allocations: 0 / 0.7716 GB, free: 2.781 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.595e-05/0.1666, allocations: 118.5 kB / 0.7717 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.073e-05/0.1666, allocations: 7.906 kB / 0.7717 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002119/0.1668, allocations: 85.91 kB / 0.7718 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1668, allocations: 0 / 0.7718 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.1669, allocations: 7.938 kB / 0.7718 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1669, allocations: 0 / 0.7718 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000193/0.1671, allocations: 193.5 kB / 0.772 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.1671, allocations: 4.109 kB / 0.772 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.137e-05/0.1672, allocations: 19.86 kB / 0.772 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.1672, allocations: 4 kB / 0.772 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.1672, allocations: 0 / 0.772 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1672, allocations: 0 / 0.772 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1672, allocations: 3.938 kB / 0.772 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001848/0.1674, allocations: 167.4 kB / 0.7722 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.91e-05/0.1674, allocations: 89.05 kB / 0.7723 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.1675, allocations: 0 / 0.7723 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.038e-05/0.1675, allocations: 4 kB / 0.7723 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/0.1676, allocations: 12.34 kB / 0.7723 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.1676, allocations: 0 / 0.7723 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.205e-05/0.1677, allocations: 103.3 kB / 0.7724 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.3e-07/0.1677, allocations: 0 / 0.7724 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003096/0.168, allocations: 67.83 kB / 0.7725 GB, free: 1.809 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006193/0.1686, allocations: 0.7708 MB / 0.7732 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000152/0.1688, allocations: 39.97 kB / 0.7733 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1688, allocations: 0 / 0.7733 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.73e-05/0.1689, allocations: 19.94 kB / 0.7733 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.1692, allocations: 19.92 kB / 0.7733 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3013/0.4705, allocations: 1.468 MB / 0.7747 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001227/0.4707, allocations: 0.6937 MB / 0.7754 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.995e-05/0.4707, allocations: 5.453 kB / 0.7754 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.271e-05/0.4708, allocations: 28.94 kB / 0.7754 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of SimCode: time 9.02e-07/0.4708, allocations: 0 / 0.7754 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01969/0.4905, allocations: 3.085 MB / 0.7785 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.235/7.726, allocations: 12.17 kB / 0.7785 GB, free: 12.69 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)