Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.001057/0.001057, allocations: 108 kB / 15.6 MB, free: 132 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.001102/0.001102, allocations: 196.1 kB / 16.53 MB, free: 6.391 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.293/1.293, allocations: 222.9 MB / 240.2 MB, free: 4.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002034/0.002034, allocations: 274.8 kB / 290.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9279/0.9279, allocations: 169.3 MB / 0.4982 GB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 103 kB / 0.5954 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1423, allocations: 86.98 MB / 0.6803 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001628/0.144, allocations: 0.5691 MB / 0.6809 GB, free: 52 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.1451, allocations: 1.118 MB / 0.682 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.259e-05/0.1451, allocations: 3.938 kB / 0.682 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.979e-06/0.1452, allocations: 0 / 0.682 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.1454, allocations: 20.45 kB / 0.682 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.286e-06/0.1454, allocations: 0 / 0.682 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.236e-05/0.1454, allocations: 8.469 kB / 0.682 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.935e-05/0.1455, allocations: 4.641 kB / 0.682 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.198e-05/0.1455, allocations: 0 / 0.682 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.024e-05/0.1455, allocations: 5.844 kB / 0.682 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.893e-06/0.1455, allocations: 0 / 0.682 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.379e-05/0.1456, allocations: 23.92 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.1456, allocations: 3.984 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.165e-05/0.1457, allocations: 3.938 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.25e-05/0.1457, allocations: 10.73 kB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.1457, allocations: 0 / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.041e-06/0.1457, allocations: 0 / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1457, allocations: 4 kB / 0.682 GB, free: 14.84 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.0002218/0.146, allocations: 319.9 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.146, allocations: 8.031 kB / 0.6824 GB, free: 14.47 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.488e-05/0.146, allocations: 35.52 kB / 0.6824 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.17e-05/0.1461, allocations: 4.938 kB / 0.6824 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.561e-05/0.1461, allocations: 164.9 kB / 0.6825 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.1462, allocations: 384 / 0.6825 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/0.1462, allocations: 5.25 kB / 0.6826 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.139e-05/0.1463, allocations: 42.28 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1463, allocations: 3.938 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.031e-06/0.1463, allocations: 1.062 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1463, allocations: 8 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.2e-05/0.1463, allocations: 7.984 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001134/0.1465, allocations: 146.7 kB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/0.1466, allocations: 38.61 kB / 0.6828 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.964e-05/0.1466, allocations: 12.8 kB / 0.6828 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001234/0.1468, allocations: 85.19 kB / 0.6829 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.1468, allocations: 38.5 kB / 0.6829 GB, free: 13.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1468, allocations: 0 / 0.6829 GB, free: 13.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.004104/0.1509, allocations: 0.5676 MB / 0.6835 GB, free: 13.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.151, allocations: 55.41 kB / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.943e-05/0.151, allocations: 89.86 kB / 0.6836 GB, free: 13.01 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.151, allocations: 29.7 kB / 0.6836 GB, free: 12.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.613e-05/0.1511, allocations: 84.12 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.1511, allocations: 7.812 kB / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-05/0.1511, allocations: 21.7 kB / 0.6838 GB, free: 12.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.648e-05/0.1512, allocations: 318.8 kB / 0.6841 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000586/0.1518, allocations: 83.89 kB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005856/0.1524, allocations: 106.5 kB / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.1536, allocations: 186.4 kB / 0.6844 GB, free: 12.15 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.1536, allocations: 0 / 0.6844 GB, free: 12.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001228/0.1548, allocations: 221.5 kB / 0.6846 GB, free: 11.93 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1549, allocations: 5.719 kB / 0.6846 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.1549, allocations: 0 / 0.6846 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1549, allocations: 4 kB / 0.6846 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003909/0.1553, allocations: 48 kB / 0.6847 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.1553, allocations: 0 / 0.6847 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.1556, allocations: 43.97 kB / 0.6847 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.1557, allocations: 4 kB / 0.6847 GB, free: 11.82 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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.645e-05/0.1557, allocations: 119 kB / 0.6848 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.1558, allocations: 7.938 kB / 0.6848 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.1571, allocations: 233.1 kB / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.1571, allocations: 432 / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1571, allocations: 0 / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.1572, allocations: 0 / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.1586, allocations: 462.2 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.1586, allocations: 4.297 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003682/0.159, allocations: 47.98 kB / 0.6856 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.159, allocations: 11.97 kB / 0.6856 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.159, allocations: 4 kB / 0.6856 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.159, allocations: 0 / 0.6856 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.159, allocations: 0 / 0.6856 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.1603, allocations: 311.3 kB / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.653e-05/0.1603, allocations: 77.11 kB / 0.6859 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.1603, allocations: 0 / 0.6859 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003583/0.1607, allocations: 39.98 kB / 0.686 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.339e-05/0.1607, allocations: 7.984 kB / 0.686 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.1607, allocations: 0 / 0.686 GB, free: 10.42 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.352e-05/0.1608, allocations: 79.28 kB / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1608, allocations: 0 / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000241/0.161, allocations: 12 kB / 0.6861 GB, free: 10.33 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 (5): * Single equations (assignments): 5 * 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.001503/0.1625, allocations: 0.8335 MB / 0.6869 GB, free: 9.469 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.1638, allocations: 191.9 kB / 0.6871 GB, free: 9.281 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1638, allocations: 0 / 0.6871 GB, free: 9.281 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005902/0.1644, allocations: 92.02 kB / 0.6872 GB, free: 9.191 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000205/0.1646, allocations: 0 / 0.6872 GB, free: 9.191 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.1658, allocations: 254.5 kB / 0.6874 GB, free: 8.902 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001989/0.166, allocations: 0.6729 MB / 0.6881 GB, free: 8.203 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002172/0.1663, allocations: 28 kB / 0.6881 GB, free: 8.176 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.787e-05/0.1663, allocations: 19.42 kB / 0.6881 GB, free: 8.156 MB / 494.1 MB Notification: Performance of SimCode: time 2e-07/0.1663, allocations: 0 / 0.6881 GB, free: 8.156 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/0.1822, allocations: 1.623 MB / 0.6897 GB, free: 6.668 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.798/6.98, allocations: 5 kB / 0.6897 GB, free: 6.664 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)