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.001611/0.001611, 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.00184/0.00184, allocations: 194.7 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.272/1.272, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002062/0.002062, allocations: 274.9 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.936/0.936, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002874/0.002874, allocations: 102.1 kB / 0.5954 GB, free: 28.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1456, allocations: 86.97 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001789/0.1475, allocations: 0.5849 MB / 0.6809 GB, free: 0 / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.1487, allocations: 1.112 MB / 0.6819 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.51e-05/0.1488, allocations: 8 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.098e-05/0.1488, allocations: 0 / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002346/0.1491, allocations: 19.86 kB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.228e-06/0.1491, allocations: 0 / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.437e-05/0.1491, allocations: 8 kB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.36e-05/0.1492, allocations: 3.984 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.538e-05/0.1492, allocations: 4 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.038e-05/0.1492, allocations: 0 / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.584e-06/0.1492, allocations: 0 / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.1493, allocations: 19.92 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.999e-06/0.1494, allocations: 7.922 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.934e-05/0.1494, allocations: 4 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.788e-05/0.1495, allocations: 15.98 kB / 0.682 GB, free: 14.78 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1495, allocations: 0 / 0.682 GB, free: 14.78 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1495, allocations: 0 / 0.682 GB, free: 14.78 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.1495, allocations: 0 / 0.682 GB, free: 14.78 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.0002767/0.1498, allocations: 317.8 kB / 0.6823 GB, free: 14.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.1498, allocations: 8.031 kB / 0.6823 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.091e-05/0.1499, allocations: 38.75 kB / 0.6824 GB, free: 14.37 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.37e-05/0.1499, allocations: 0.9375 kB / 0.6824 GB, free: 14.37 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.055e-05/0.15, allocations: 168.3 kB / 0.6825 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.15, allocations: 4.375 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.48e-05/0.15, allocations: 4.375 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.67e-05/0.1501, allocations: 41.75 kB / 0.6826 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1501, allocations: 0 / 0.6826 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.1502, allocations: 4 kB / 0.6826 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1502, allocations: 0 / 0.6826 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.658e-05/0.1502, allocations: 7.984 kB / 0.6826 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001319/0.1503, allocations: 153.6 kB / 0.6828 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.1505, allocations: 42.53 kB / 0.6828 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.126e-05/0.1506, allocations: 8.859 kB / 0.6828 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.1507, allocations: 89.17 kB / 0.6829 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.1507, allocations: 34.5 kB / 0.6829 GB, free: 13.69 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1507, allocations: 0 / 0.6829 GB, free: 13.69 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.00424/0.155, allocations: 0.5715 MB / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.155, allocations: 51.41 kB / 0.6835 GB, free: 13.05 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.143e-05/0.1551, allocations: 93.86 kB / 0.6836 GB, free: 12.95 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.1551, allocations: 25.7 kB / 0.6836 GB, free: 12.92 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.922e-05/0.1551, allocations: 80.14 kB / 0.6837 GB, free: 12.84 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.245e-05/0.1552, allocations: 15.81 kB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.495e-05/0.1552, allocations: 21.7 kB / 0.6838 GB, free: 12.79 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.885e-05/0.1553, allocations: 310.8 kB / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005985/0.1559, allocations: 83.95 kB / 0.6841 GB, free: 12.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006987/0.1566, allocations: 102.5 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.1578, allocations: 186.4 kB / 0.6844 GB, free: 12.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1578, allocations: 0 / 0.6844 GB, free: 12.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00126/0.1591, allocations: 221.5 kB / 0.6846 GB, free: 11.88 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1591, allocations: 9.719 kB / 0.6846 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.1591, allocations: 0 / 0.6846 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.1592, allocations: 0 / 0.6846 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004064/0.1596, allocations: 52 kB / 0.6847 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-06/0.1596, allocations: 3.938 kB / 0.6847 GB, free: 11.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.16, allocations: 43.97 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.16, allocations: 0 / 0.6847 GB, free: 11.77 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 0.000117/0.1601, allocations: 119.1 kB / 0.6848 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.425e-05/0.1601, allocations: 3.938 kB / 0.6848 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.1616, allocations: 237.3 kB / 0.6851 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1616, allocations: 0 / 0.6851 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.1616, allocations: 4 kB / 0.6851 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1616, allocations: 3.938 kB / 0.6851 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.1632, allocations: 458.3 kB / 0.6855 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.1632, allocations: 3.984 kB / 0.6855 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003819/0.1636, allocations: 43.98 kB / 0.6856 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1636, allocations: 0 / 0.6856 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.1637, allocations: 15.98 kB / 0.6856 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1637, allocations: 0 / 0.6856 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1637, allocations: 0 / 0.6856 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.1649, allocations: 303.3 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.199e-05/0.165, allocations: 81.11 kB / 0.6859 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.165, allocations: 0 / 0.6859 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003768/0.1654, allocations: 39.92 kB / 0.686 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.708e-05/0.1654, allocations: 7.984 kB / 0.686 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.1654, allocations: 4 kB / 0.686 GB, free: 10.37 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.322e-05/0.1655, allocations: 79.28 kB / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1655, allocations: 0 / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002619/0.1657, allocations: 12 kB / 0.6861 GB, free: 10.28 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.001597/0.1673, allocations: 0.8373 MB / 0.6869 GB, free: 9.41 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.1686, allocations: 184 kB / 0.6871 GB, free: 9.23 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1687, allocations: 0 / 0.6871 GB, free: 9.23 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006069/0.1693, allocations: 92.27 kB / 0.6872 GB, free: 9.141 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.1695, allocations: 8.75 kB / 0.6872 GB, free: 9.133 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.1708, allocations: 246.5 kB / 0.6874 GB, free: 8.852 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.1711, allocations: 0.6729 MB / 0.6881 GB, free: 8.152 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002194/0.1713, allocations: 28 kB / 0.6881 GB, free: 8.125 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.392e-05/0.1714, allocations: 15.42 kB / 0.6881 GB, free: 8.109 MB / 494.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1714, allocations: 0 / 0.6881 GB, free: 8.109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2902/0.4615, allocations: 1.628 MB / 0.6897 GB, free: 6.617 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.935/8.397, allocations: 14.19 kB / 0.6897 GB, free: 6.609 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)