Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.SmoothHeaviside.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_SmoothHeaviside",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.001862/0.001862, allocations: 109.8 kB / 16.41 MB, free: 6.496 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.002063/0.002063, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.429/1.429, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8627/0.8627, allocations: 122.8 MB / 414 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 63.81 kB / 0.568 GB, free: 28.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1534, allocations: 77.94 MB / 0.6441 GB, free: 9.523 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.SmoothHeaviside): time 0.002478/0.1559, allocations: 1.427 MB / 0.6455 GB, free: 8.09 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007853/0.1567, allocations: 479.6 kB / 0.6459 GB, free: 7.613 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.454e-05/0.1568, allocations: 0 / 0.6459 GB, free: 7.613 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.6e-05/0.1568, allocations: 0 / 0.6459 GB, free: 7.613 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.765e-05/0.1569, allocations: 7.938 kB / 0.6459 GB, free: 7.605 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.1571, allocations: 27.91 kB / 0.6459 GB, free: 7.578 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.913e-05/0.1572, allocations: 23.92 kB / 0.646 GB, free: 7.555 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.665e-05/0.1573, allocations: 8 kB / 0.646 GB, free: 7.547 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.473e-05/0.1573, allocations: 7.984 kB / 0.646 GB, free: 7.539 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.468e-05/0.1574, allocations: 7.938 kB / 0.646 GB, free: 7.531 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.1574, allocations: 4 kB / 0.646 GB, free: 7.527 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.798e-05/0.1575, allocations: 27.97 kB / 0.646 GB, free: 7.5 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.069e-05/0.1575, allocations: 0 / 0.646 GB, free: 7.5 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.449e-05/0.1575, allocations: 19.92 kB / 0.646 GB, free: 7.48 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.1577, allocations: 40.05 kB / 0.6461 GB, free: 7.441 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1577, allocations: 0 / 0.6461 GB, free: 7.441 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1577, allocations: 4 kB / 0.6461 GB, free: 7.438 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1577, allocations: 0 / 0.6461 GB, free: 7.438 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.0004572/0.1581, allocations: 339.4 kB / 0.6464 GB, free: 7.059 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1582, allocations: 12.62 kB / 0.6464 GB, free: 7.047 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.016e-05/0.1582, allocations: 30.75 kB / 0.6465 GB, free: 7.008 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.761e-05/0.1583, allocations: 4.891 kB / 0.6465 GB, free: 7.004 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.1584, allocations: 168.4 kB / 0.6466 GB, free: 6.801 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1584, allocations: 4.359 kB / 0.6466 GB, free: 6.797 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.1584, allocations: 384 / 0.6466 GB, free: 6.797 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001891/0.1586, allocations: 53.8 kB / 0.6467 GB, free: 6.738 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1586, allocations: 0 / 0.6467 GB, free: 6.738 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.1586, allocations: 0 / 0.6467 GB, free: 6.738 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1587, allocations: 3.938 kB / 0.6467 GB, free: 6.734 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.1588, allocations: 39.89 kB / 0.6467 GB, free: 6.695 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003136/0.1592, allocations: 252.9 kB / 0.647 GB, free: 6.398 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.1593, allocations: 38.55 kB / 0.647 GB, free: 6.352 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.015e-05/0.1594, allocations: 22.03 kB / 0.647 GB, free: 6.328 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/0.1595, allocations: 89.08 kB / 0.6471 GB, free: 6.223 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.1596, allocations: 38.56 kB / 0.6471 GB, free: 6.176 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 2.544e-06/0.1596, allocations: 0 / 0.6471 GB, free: 6.176 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.000352/0.1599, allocations: 77.59 kB / 0.6472 GB, free: 6.094 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.16, allocations: 55.39 kB / 0.6473 GB, free: 6.027 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.278e-05/0.1601, allocations: 101.9 kB / 0.6474 GB, free: 5.918 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.1601, allocations: 25.7 kB / 0.6474 GB, free: 5.887 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.574e-05/0.1602, allocations: 92.22 kB / 0.6475 GB, free: 5.793 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.1602, allocations: 11.88 kB / 0.6475 GB, free: 5.781 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.1602, allocations: 13.72 kB / 0.6475 GB, free: 5.762 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.885e-05/0.1603, allocations: 318.8 kB / 0.6478 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.729e-05/0.1604, allocations: 11.98 kB / 0.6478 GB, free: 5.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.712e-05/0.1605, allocations: 19.98 kB / 0.6478 GB, free: 5.41 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.1607, allocations: 48.81 kB / 0.6479 GB, free: 5.359 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1607, allocations: 0 / 0.6479 GB, free: 5.359 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002048/0.1609, allocations: 61.66 kB / 0.6479 GB, free: 5.293 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1609, allocations: 8 kB / 0.6479 GB, free: 5.285 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1609, allocations: 0 / 0.6479 GB, free: 5.285 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.161, allocations: 0 / 0.6479 GB, free: 5.285 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.915e-05/0.1611, allocations: 12.03 kB / 0.648 GB, free: 5.273 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.1611, allocations: 3.984 kB / 0.648 GB, free: 5.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.222e-05/0.1611, allocations: 7.938 kB / 0.648 GB, free: 5.262 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.1611, allocations: 0 / 0.648 GB, free: 5.262 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 7.779e-05/0.1612, allocations: 113.8 kB / 0.6481 GB, free: 5.141 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.1613, allocations: 4.25 kB / 0.6481 GB, free: 5.137 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002459/0.1615, allocations: 84.7 kB / 0.6482 GB, free: 5.047 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1615, allocations: 0 / 0.6482 GB, free: 5.047 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1615, allocations: 0 / 0.6482 GB, free: 5.047 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1615, allocations: 4 kB / 0.6482 GB, free: 5.043 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.1617, allocations: 157.6 kB / 0.6483 GB, free: 4.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1617, allocations: 3.938 kB / 0.6483 GB, free: 4.836 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.006e-05/0.1618, allocations: 7.984 kB / 0.6483 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.1618, allocations: 0 / 0.6483 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.1618, allocations: 4 kB / 0.6483 GB, free: 4.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1618, allocations: 0 / 0.6483 GB, free: 4.824 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1618, allocations: 0 / 0.6483 GB, free: 4.824 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002536/0.1621, allocations: 175.4 kB / 0.6485 GB, free: 4.637 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.832e-05/0.1621, allocations: 77.11 kB / 0.6486 GB, free: 4.543 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.1621, allocations: 3.984 kB / 0.6486 GB, free: 4.539 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.592e-05/0.1622, allocations: 4 kB / 0.6486 GB, free: 4.535 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.962e-05/0.1623, allocations: 4 kB / 0.6486 GB, free: 4.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-06/0.1623, allocations: 4.031 kB / 0.6486 GB, free: 4.527 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.398e-05/0.1623, allocations: 87.27 kB / 0.6487 GB, free: 4.441 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1623, allocations: 0 / 0.6487 GB, free: 4.441 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000229/0.1626, allocations: 4 kB / 0.6487 GB, free: 4.438 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.0005726/0.1631, allocations: 0.6968 MB / 0.6494 GB, free: 3.711 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002168/0.1634, allocations: 39.89 kB / 0.6494 GB, free: 3.672 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1634, allocations: 0 / 0.6494 GB, free: 3.672 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.353e-05/0.1635, allocations: 23.92 kB / 0.6494 GB, free: 3.648 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.1638, allocations: 5.406 kB / 0.6494 GB, free: 3.645 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004419/0.1643, allocations: 143.2 kB / 0.6496 GB, free: 3.465 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.1645, allocations: 0.6729 MB / 0.6502 GB, free: 2.766 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.806e-05/0.1646, allocations: 7.969 kB / 0.6502 GB, free: 2.758 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.219e-05/0.1646, allocations: 15.44 kB / 0.6502 GB, free: 2.742 MB / 494.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1646, allocations: 0 / 0.6502 GB, free: 2.742 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01879/0.1834, allocations: 1.418 MB / 0.6516 GB, free: 1.402 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.496/7.679, allocations: 6.359 kB / 0.6516 GB, free: 1.398 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Utilities_Math_Examples_SmoothHeaviside.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)