Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.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.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",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.001247/0.001247, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002432/0.002432, allocations: 287 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.032/1.032, allocations: 178.6 MB / 0.5073 GB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002593/0.002593, allocations: 104.1 kB / 0.6065 GB, free: 24.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1589, allocations: 89.14 MB / 0.6936 GB, free: 4.238 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.PowerLinearized): time 0.002704/0.1617, allocations: 1.438 MB / 0.695 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002664/0.162, allocations: 88.52 kB / 0.6951 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.458e-05/0.162, allocations: 0 / 0.6951 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.594e-05/0.162, allocations: 0 / 0.6951 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.773e-05/0.1621, allocations: 7.922 kB / 0.6951 GB, free: 2.699 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.1623, allocations: 21.56 kB / 0.6951 GB, free: 2.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.156e-05/0.1624, allocations: 19.94 kB / 0.6951 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.1625, allocations: 11.98 kB / 0.6952 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.257e-05/0.1625, allocations: 11.94 kB / 0.6952 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.952e-05/0.1626, allocations: 10.77 kB / 0.6952 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.1626, allocations: 4 kB / 0.6952 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.901e-05/0.1627, allocations: 19.98 kB / 0.6952 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.691e-05/0.1627, allocations: 4 kB / 0.6952 GB, free: 2.602 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.151e-05/0.1627, allocations: 15.92 kB / 0.6952 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.1628, allocations: 27.89 kB / 0.6952 GB, free: 2.559 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.1629, allocations: 4 kB / 0.6952 GB, free: 2.555 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1629, allocations: 4.438 kB / 0.6952 GB, free: 2.551 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.1629, allocations: 0.625 kB / 0.6952 GB, free: 2.551 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.0004763/0.1633, allocations: 344.3 kB / 0.6956 GB, free: 2.164 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1634, allocations: 9.5 kB / 0.6956 GB, free: 2.156 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.867e-05/0.1634, allocations: 34.75 kB / 0.6956 GB, free: 2.113 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.1636, allocations: 8.922 kB / 0.6956 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.1637, allocations: 174.9 kB / 0.6958 GB, free: 1.898 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.1638, allocations: 4.312 kB / 0.6958 GB, free: 1.895 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.1638, allocations: 4.375 kB / 0.6958 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.164, allocations: 50.23 kB / 0.6959 GB, free: 1.836 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.164, allocations: 3.938 kB / 0.6959 GB, free: 1.832 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.164, allocations: 13.55 kB / 0.6959 GB, free: 1.82 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.164, allocations: 0 / 0.6959 GB, free: 1.82 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002165/0.1643, allocations: 48.53 kB / 0.6959 GB, free: 1.773 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004356/0.1647, allocations: 258.5 kB / 0.6962 GB, free: 1.473 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000183/0.1649, allocations: 63.11 kB / 0.6962 GB, free: 1.402 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.165, allocations: 24.91 kB / 0.6962 GB, free: 1.375 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.165, allocations: 4 kB / 0.6962 GB, free: 1.371 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.1651, allocations: 30.56 kB / 0.6963 GB, free: 1.332 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.1651, allocations: 0 / 0.6963 GB, free: 1.332 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0004483/0.1655, allocations: 109.5 kB / 0.6964 GB, free: 1.219 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.1656, allocations: 55.41 kB / 0.6964 GB, free: 1.152 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.801e-05/0.1657, allocations: 105.9 kB / 0.6965 GB, free: 1.039 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.1657, allocations: 25.7 kB / 0.6966 GB, free: 1.008 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.645e-05/0.1658, allocations: 95.97 kB / 0.6967 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.1658, allocations: 0 / 0.6967 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-05/0.1658, allocations: 17.66 kB / 0.6967 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.166, allocations: 319 kB / 0.697 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.1661, allocations: 23.97 kB / 0.697 GB, free: 0.543 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.1662, allocations: 23.97 kB / 0.697 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002107/0.1664, allocations: 52.75 kB / 0.6971 GB, free: 476 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.1665, allocations: 8 kB / 0.6971 GB, free: 468 kB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002577/0.1667, allocations: 81.56 kB / 0.6972 GB, free: 380 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.1667, allocations: 4 kB / 0.6972 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1668, allocations: 0 / 0.6972 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.1668, allocations: 0 / 0.6972 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.1669, allocations: 11.98 kB / 0.6972 GB, free: 364 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.1669, allocations: 0 / 0.6972 GB, free: 364 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.315e-05/0.167, allocations: 16.02 kB / 0.6972 GB, free: 348 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.9e-06/0.167, allocations: 0 / 0.6972 GB, free: 348 kB / 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 7.707e-05/0.1671, allocations: 114.4 kB / 0.6973 GB, free: 224 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.1671, allocations: 4 kB / 0.6973 GB, free: 220 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.699e-05/0.1671, allocations: 7.516 kB / 0.6973 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.1671, allocations: 0 / 0.6973 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.1671, allocations: 0 / 0.6973 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.1671, allocations: 0 / 0.6973 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.1673, allocations: 173.6 kB / 0.6975 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1673, allocations: 4 kB / 0.6975 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.881e-05/0.1674, allocations: 15.92 kB / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1674, allocations: 3.938 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.1675, allocations: 0 / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1675, allocations: 0 / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1675, allocations: 0 / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/0.1678, allocations: 183.3 kB / 0.6977 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.827e-05/0.1678, allocations: 77.11 kB / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.1678, allocations: 4 kB / 0.6977 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.065e-05/0.1679, allocations: 7.984 kB / 0.6978 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.168, allocations: 4.25 kB / 0.6978 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.168, allocations: 0 / 0.6978 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.144e-05/0.168, allocations: 91.27 kB / 0.6978 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.168, allocations: 0 / 0.6978 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000212/0.1683, allocations: 8.031 kB / 0.6979 GB, free: 15.56 MB / 0.4981 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 (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.000589/0.1689, allocations: 0.7123 MB / 0.6985 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002692/0.1691, allocations: 51.98 kB / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.1691, allocations: 0 / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.1693, allocations: 31.91 kB / 0.6986 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.1696, allocations: 4 kB / 0.6986 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004777/0.17, allocations: 155.3 kB / 0.6988 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.1703, allocations: 0.6768 MB / 0.6994 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.271e-05/0.1704, allocations: 4 kB / 0.6994 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.758e-05/0.1704, allocations: 11.42 kB / 0.6995 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of SimCode: time 4.61e-07/0.1704, allocations: 0 / 0.6995 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.1925, allocations: 1.432 MB / 0.7009 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.34/7.532, allocations: 4.625 kB / 0.7009 GB, free: 12.47 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe 2>&1)