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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8279/0.8279, allocations: 141.8 MB / 149.3 MB, free: 9.219 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 188.2 kB / 182.2 MB, free: 9.441 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 221.5 MB / 436.4 MB, free: 13.38 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 99.66 kB / 0.5074 GB, free: 10.2 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001749/0.001749, allocations: 271.7 kB / 0.5889 GB, free: 54.69 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.264e-05/2.257e-05, allocations: 8 kB / 0.6766 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4714/0.4714, allocations: 82.77 MB / 0.7575 GB, free: 31.99 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1458/0.6172, allocations: 107.8 MB / 0.8627 GB, free: 4.047 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.6176, allocations: 75.95 kB / 0.8628 GB, free: 3.973 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.002448/0.62, allocations: 0.8694 MB / 0.8637 GB, free: 3.102 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.415e-06/0.6201, allocations: 0 / 0.8637 GB, free: 3.102 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.6201, allocations: 0 / 0.8637 GB, free: 3.102 MB / 0.5261 GB 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.0002768/0.6204, allocations: 323.2 kB / 0.864 GB, free: 2.742 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.6204, allocations: 11.31 kB / 0.864 GB, free: 2.734 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.989e-05/0.6204, allocations: 0 / 0.864 GB, free: 2.734 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.6206, allocations: 163 kB / 0.8641 GB, free: 2.535 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.6206, allocations: 3.953 kB / 0.8641 GB, free: 2.531 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.6206, allocations: 4 kB / 0.8642 GB, free: 2.527 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.54e-05/0.6207, allocations: 7.938 kB / 0.8642 GB, free: 2.52 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.253e-05/0.6208, allocations: 37.69 kB / 0.8642 GB, free: 2.477 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.6208, allocations: 0 / 0.8642 GB, free: 2.477 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.6208, allocations: 7.984 kB / 0.8642 GB, free: 2.469 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.6208, allocations: 0 / 0.8642 GB, free: 2.469 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001344/0.6209, allocations: 126.2 kB / 0.8643 GB, free: 2.309 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.6211, allocations: 30.61 kB / 0.8644 GB, free: 2.27 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.017e-05/0.6211, allocations: 8.859 kB / 0.8644 GB, free: 2.258 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001436/0.6213, allocations: 81.11 kB / 0.8644 GB, free: 2.16 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.6213, allocations: 46.53 kB / 0.8645 GB, free: 2.105 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.6213, allocations: 0 / 0.8645 GB, free: 2.105 MB / 0.5261 GB Notification: Performance of matching and sorting (n=5): time 0.002539/0.6239, allocations: 353.4 kB / 0.8648 GB, free: 1.754 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.6239, allocations: 51.41 kB / 0.8649 GB, free: 1.691 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.257e-05/0.624, allocations: 89 kB / 0.865 GB, free: 1.598 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.624, allocations: 25.7 kB / 0.865 GB, free: 1.566 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.043e-05/0.624, allocations: 84.14 kB / 0.8651 GB, free: 1.48 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.6241, allocations: 15.75 kB / 0.8651 GB, free: 1.465 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.08e-05/0.6241, allocations: 0 / 0.8651 GB, free: 1.465 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.6242, allocations: 314.8 kB / 0.8654 GB, free: 1.148 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.446e-05/0.6243, allocations: 11.98 kB / 0.8654 GB, free: 1.137 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.167e-05/0.6243, allocations: 30.58 kB / 0.8654 GB, free: 1.098 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.993e-05/0.6244, allocations: 19.98 kB / 0.8654 GB, free: 1.078 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.6244, allocations: 3.938 kB / 0.8654 GB, free: 1.074 MB / 0.5261 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001778/0.6246, allocations: 61.61 kB / 0.8655 GB, free: 1.008 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.6246, allocations: 8 kB / 0.8655 GB, free: 1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.6247, allocations: 3.953 kB / 0.8655 GB, free: 0.9961 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.6247, allocations: 0 / 0.8655 GB, free: 0.9961 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003945/0.6251, allocations: 56.06 kB / 0.8656 GB, free: 0.9414 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.6251, allocations: 0 / 0.8656 GB, free: 0.9414 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003237/0.6254, allocations: 39.97 kB / 0.8656 GB, free: 0.9023 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.6254, allocations: 4 kB / 0.8656 GB, free: 0.8984 MB / 0.5261 GB 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.327e-05/0.6255, allocations: 104.9 kB / 0.8657 GB, free: 0.7891 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001726/0.6257, allocations: 69.52 kB / 0.8658 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.6257, allocations: 11.86 kB / 0.8658 GB, free: 0.707 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003558/0.6261, allocations: 85.8 kB / 0.8659 GB, free: 0.6211 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.6261, allocations: 4 kB / 0.8659 GB, free: 0.6172 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.6261, allocations: 0 / 0.8659 GB, free: 0.6172 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.6261, allocations: 0 / 0.8659 GB, free: 0.6172 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004811/0.6266, allocations: 291 kB / 0.8661 GB, free: 296 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.6266, allocations: 0 / 0.8661 GB, free: 296 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003695/0.627, allocations: 47.97 kB / 0.8662 GB, free: 248 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.627, allocations: 0 / 0.8662 GB, free: 248 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.627, allocations: 4 kB / 0.8662 GB, free: 244 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.6271, allocations: 4 kB / 0.8662 GB, free: 240 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.6271, allocations: 0 / 0.8662 GB, free: 240 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.6273, allocations: 163.8 kB / 0.8664 GB, free: 60 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 7.167e-05/0.6274, allocations: 81.06 kB / 0.8664 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/0.6274, allocations: 4 kB / 0.8664 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00037/0.6278, allocations: 35.98 kB / 0.8665 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.862e-05/0.6279, allocations: 7.984 kB / 0.8665 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.6279, allocations: 0 / 0.8665 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.754e-05/0.6279, allocations: 75.28 kB / 0.8665 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6279, allocations: 4 kB / 0.8666 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002881/0.6282, allocations: 16 kB / 0.8666 GB, free: 15.82 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006888/0.6289, allocations: 0.6987 MB / 0.8672 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001475/0.6291, allocations: 23.94 kB / 0.8673 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.6291, allocations: 192 / 0.8673 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 4.573e-05/0.6291, allocations: 19.98 kB / 0.8673 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001577/0.6293, allocations: 3.938 kB / 0.8673 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007408/0.63, allocations: 129.6 kB / 0.8674 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.6303, allocations: 0.6806 MB / 0.8681 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0002753/0.6306, allocations: 32 kB / 0.8681 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.151e-05/0.6307, allocations: 19.42 kB / 0.8681 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of SimCode: time 3.21e-07/0.6307, allocations: 0 / 0.8681 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01922/0.6499, allocations: 1.136 MB / 0.8692 GB, free: 12.99 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/0.6502, allocations: 181.9 kB / 0.8694 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.509/2.159, allocations: 1.562 kB / 0.8694 GB, free: 12.79 MB / 0.5417 GB (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/linux/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)