Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.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.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",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.001102/0.001102, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001173/0.001173, allocations: 191.8 kB / 16.14 MB, free: 6.707 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.302/1.302, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002029/0.00203, allocations: 282.8 kB / 290.2 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8912/0.8912, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 97.08 kB / 0.5946 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1574, allocations: 86.98 MB / 0.6795 GB, free: 1.09 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.002643/0.1601, allocations: 1.497 MB / 0.681 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000772/0.1609, allocations: 412.1 kB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.911e-05/0.1609, allocations: 5.469 kB / 0.6814 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.444e-05/0.161, allocations: 3.938 kB / 0.6814 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.442e-05/0.161, allocations: 0 / 0.6814 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.1614, allocations: 81.16 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.528e-05/0.1614, allocations: 24.8 kB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.658e-05/0.1615, allocations: 8.219 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.057e-05/0.1616, allocations: 12.61 kB / 0.6815 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.615e-05/0.1616, allocations: 9.438 kB / 0.6815 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.1616, allocations: 0 / 0.6815 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/0.162, allocations: 275.6 kB / 0.6818 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.302e-05/0.162, allocations: 3.984 kB / 0.6818 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.513e-05/0.162, allocations: 11.94 kB / 0.6818 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.1622, allocations: 112.3 kB / 0.6819 GB, free: 14.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1622, allocations: 4 kB / 0.6819 GB, free: 14.65 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1623, allocations: 0 / 0.6819 GB, free: 14.65 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1623, allocations: 0 / 0.6819 GB, free: 14.65 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004649/0.1627, allocations: 359.5 kB / 0.6823 GB, free: 14.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1628, allocations: 8.031 kB / 0.6823 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.183e-05/0.1628, allocations: 34.75 kB / 0.6823 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.78e-05/0.1629, allocations: 4.875 kB / 0.6823 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.163, allocations: 172.2 kB / 0.6825 GB, free: 13.99 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.163, allocations: 4.375 kB / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.155e-06/0.163, allocations: 4.375 kB / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001623/0.1632, allocations: 50.23 kB / 0.6825 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1632, allocations: 3.938 kB / 0.6825 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.1632, allocations: 3.938 kB / 0.6825 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.1633, allocations: 0 / 0.6825 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.1634, allocations: 35.95 kB / 0.6826 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003215/0.1637, allocations: 256.9 kB / 0.6828 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.1639, allocations: 38.5 kB / 0.6829 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.947e-05/0.164, allocations: 20.91 kB / 0.6829 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006894/0.1647, allocations: 461.5 kB / 0.6833 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.1647, allocations: 38.5 kB / 0.6834 GB, free: 12.92 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.1647, allocations: 0 / 0.6834 GB, free: 12.92 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003511/0.1651, allocations: 81.64 kB / 0.6834 GB, free: 12.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.1651, allocations: 59.41 kB / 0.6835 GB, free: 12.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.46e-05/0.1652, allocations: 105.8 kB / 0.6836 GB, free: 12.65 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.1652, allocations: 25.7 kB / 0.6836 GB, free: 12.62 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.359e-05/0.1653, allocations: 84.12 kB / 0.6837 GB, free: 12.54 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.1653, allocations: 3.906 kB / 0.6837 GB, free: 12.53 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.208e-05/0.1653, allocations: 17.72 kB / 0.6837 GB, free: 12.51 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1655, allocations: 315 kB / 0.684 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.018e-05/0.1656, allocations: 19.97 kB / 0.684 GB, free: 12.17 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.674e-05/0.1656, allocations: 15.98 kB / 0.684 GB, free: 12.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.1658, allocations: 44.77 kB / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1658, allocations: 3.938 kB / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001888/0.166, allocations: 69.72 kB / 0.6842 GB, free: 12.03 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.166, allocations: 4 kB / 0.6842 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.166, allocations: 0 / 0.6842 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.166, allocations: 3.984 kB / 0.6842 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.263e-05/0.1661, allocations: 11.98 kB / 0.6842 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.1661, allocations: 0 / 0.6842 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.716e-05/0.1662, allocations: 11.89 kB / 0.6842 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.1662, allocations: 4.188 kB / 0.6842 GB, free: 12 MB / 494.1 MB 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 (2): * Single equations (assignments): 2 * 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 9.557e-05/0.1663, allocations: 122.5 kB / 0.6843 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.432e-05/0.1663, allocations: 0 / 0.6843 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/0.1666, allocations: 73.12 kB / 0.6844 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1666, allocations: 0 / 0.6844 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.1666, allocations: 4 kB / 0.6844 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1666, allocations: 0 / 0.6844 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.1668, allocations: 169.6 kB / 0.6845 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1668, allocations: 4.031 kB / 0.6846 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.286e-05/0.1668, allocations: 7.984 kB / 0.6846 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.1668, allocations: 0 / 0.6846 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.1669, allocations: 0 / 0.6846 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1669, allocations: 4 kB / 0.6846 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1669, allocations: 0 / 0.6846 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002599/0.1671, allocations: 171.4 kB / 0.6847 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.703e-05/0.1672, allocations: 81.02 kB / 0.6848 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.1672, allocations: 0 / 0.6848 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.116e-05/0.1673, allocations: 11.92 kB / 0.6848 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.248e-05/0.1673, allocations: 4 kB / 0.6848 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.1673, allocations: 0 / 0.6848 GB, free: 11.26 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.077e-05/0.1674, allocations: 87.27 kB / 0.6849 GB, free: 11.17 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1674, allocations: 0 / 0.6849 GB, free: 11.17 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.1676, allocations: 16 kB / 0.6849 GB, free: 11.16 MB / 494.1 MB 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 (2): * Single equations (assignments): 2 * 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.000562/0.1682, allocations: 0.7085 MB / 0.6856 GB, free: 10.42 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002228/0.1684, allocations: 39.98 kB / 0.6856 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1684, allocations: 0 / 0.6856 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.744e-05/0.1685, allocations: 19.98 kB / 0.6857 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.1688, allocations: 4 kB / 0.6857 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004241/0.1692, allocations: 160.8 kB / 0.6858 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.1695, allocations: 0.6772 MB / 0.6865 GB, free: 9.461 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.684e-05/0.1695, allocations: 7.984 kB / 0.6865 GB, free: 9.453 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.1695, allocations: 15.38 kB / 0.6865 GB, free: 9.438 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1695, allocations: 3.938 kB / 0.6865 GB, free: 9.434 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01185/0.1814, allocations: 1.406 MB / 0.6879 GB, free: 8.133 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002511/0.1817, allocations: 216.7 kB / 0.6881 GB, free: 7.871 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/1.877, allocations: 0 / 0.6881 GB, free: 7.871 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)