Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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: translateModel(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 108.8 kB / 16.41 MB, free: 6.508 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.00137/0.00137, allocations: 184 kB / 17.34 MB, free: 5.738 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.413/1.413, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002532/0.002532, allocations: 298.7 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.005/1.005, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002827/0.002827, allocations: 103.8 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4456/0.4484, allocations: 86.98 MB / 0.7671 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002489/0.4509, allocations: 1.433 MB / 0.7685 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0007972/0.4517, allocations: 469.5 kB / 0.7689 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.157e-05/0.4518, allocations: 0 / 0.7689 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.578e-05/0.4518, allocations: 0 / 0.7689 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.907e-05/0.4518, allocations: 3.938 kB / 0.7689 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.452, allocations: 27.91 kB / 0.7689 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.309e-05/0.4521, allocations: 31.86 kB / 0.769 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.35e-05/0.4522, allocations: 4 kB / 0.769 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.822e-05/0.4523, allocations: 11.98 kB / 0.769 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.927e-05/0.4523, allocations: 11.94 kB / 0.769 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.227e-05/0.4523, allocations: 4 kB / 0.769 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.173e-05/0.4524, allocations: 23.97 kB / 0.769 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.081e-05/0.4524, allocations: 3.984 kB / 0.769 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.387e-05/0.4524, allocations: 11.94 kB / 0.769 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.4525, allocations: 39.62 kB / 0.7691 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.4526, allocations: 0 / 0.7691 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.112e-06/0.4526, allocations: 3.938 kB / 0.7691 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.756e-06/0.4526, allocations: 4 kB / 0.7691 GB, free: 1.746 MB / 0.5294 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.0004715/0.453, allocations: 345.3 kB / 0.7694 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.4531, allocations: 8.031 kB / 0.7694 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.788e-05/0.4531, allocations: 4.938 kB / 0.7694 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.4532, allocations: 168.3 kB / 0.7696 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.4532, allocations: 384 / 0.7696 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.4533, allocations: 4.375 kB / 0.7696 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/0.4534, allocations: 53.98 kB / 0.7696 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.4534, allocations: 4 kB / 0.7696 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.4535, allocations: 4 kB / 0.7696 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.4535, allocations: 0 / 0.7696 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.4536, allocations: 39.89 kB / 0.7697 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003315/0.454, allocations: 252.9 kB / 0.7699 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.4541, allocations: 42.55 kB / 0.77 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.028e-05/0.4542, allocations: 16.91 kB / 0.77 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001358/0.4543, allocations: 81.11 kB / 0.7701 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.4544, allocations: 38.55 kB / 0.7701 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.4544, allocations: 0 / 0.7701 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0003615/0.4547, allocations: 81.59 kB / 0.7702 GB, free: 456 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.4548, allocations: 51.41 kB / 0.7702 GB, free: 392 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.588e-05/0.4548, allocations: 109.8 kB / 0.7703 GB, free: 272 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.4549, allocations: 25.7 kB / 0.7704 GB, free: 240 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.999e-05/0.4549, allocations: 88.09 kB / 0.7704 GB, free: 148 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.4549, allocations: 4 kB / 0.7704 GB, free: 144 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.663e-05/0.455, allocations: 13.7 kB / 0.7705 GB, free: 124 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001492/0.4551, allocations: 319 kB / 0.7708 GB, free: 15.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.188e-05/0.4552, allocations: 15.98 kB / 0.7708 GB, free: 15.79 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.886e-05/0.4553, allocations: 15.98 kB / 0.7708 GB, free: 15.77 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.4555, allocations: 48.69 kB / 0.7708 GB, free: 15.72 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4555, allocations: 0 / 0.7708 GB, free: 15.72 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002127/0.4557, allocations: 73.67 kB / 0.7709 GB, free: 15.64 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.4557, allocations: 4 kB / 0.7709 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-06/0.4557, allocations: 0 / 0.7709 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.4557, allocations: 0 / 0.7709 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.58e-05/0.4558, allocations: 8 kB / 0.7709 GB, free: 15.63 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.4558, allocations: 3.984 kB / 0.7709 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.163e-05/0.4558, allocations: 7.984 kB / 0.7709 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-06/0.4559, allocations: 0 / 0.7709 GB, free: 15.62 MB / 0.545 GB 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 8.236e-05/0.4559, allocations: 124.2 kB / 0.771 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.375e-05/0.456, allocations: 0 / 0.771 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002403/0.4562, allocations: 76.7 kB / 0.7711 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.4562, allocations: 7.938 kB / 0.7711 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.4562, allocations: 0 / 0.7711 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.4562, allocations: 0 / 0.7711 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001723/0.4564, allocations: 157.6 kB / 0.7713 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.4564, allocations: 8.016 kB / 0.7713 GB, free: 15.19 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.453e-05/0.4564, allocations: 11.98 kB / 0.7713 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.4564, allocations: 0 / 0.7713 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.4565, allocations: 0 / 0.7713 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4565, allocations: 256 / 0.7713 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4565, allocations: 0 / 0.7713 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002639/0.4567, allocations: 175.3 kB / 0.7715 GB, free: 14.99 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-05/0.4568, allocations: 81.11 kB / 0.7715 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.4568, allocations: 4 kB / 0.7715 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.75e-05/0.4569, allocations: 3.984 kB / 0.7716 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.434e-05/0.4569, allocations: 7.938 kB / 0.7716 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.4569, allocations: 0 / 0.7716 GB, free: 14.88 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.093e-05/0.457, allocations: 87.27 kB / 0.7716 GB, free: 14.79 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.457, allocations: 0 / 0.7716 GB, free: 14.79 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002314/0.4572, allocations: 11.94 kB / 0.7717 GB, free: 14.78 MB / 0.545 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.0001374/0.4573, allocations: 99.28 kB / 0.7717 GB, free: 14.67 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002207/0.4575, allocations: 39.95 kB / 0.7718 GB, free: 14.63 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.4575, allocations: 0 / 0.7718 GB, free: 14.63 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.56e-05/0.4576, allocations: 23.92 kB / 0.7718 GB, free: 14.61 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.4579, allocations: 6.688 kB / 0.7718 GB, free: 14.61 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002634/0.4582, allocations: 105.7 kB / 0.7719 GB, free: 14.47 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.4585, allocations: 0.6768 MB / 0.7726 GB, free: 13.77 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.616e-05/0.4585, allocations: 4 kB / 0.7726 GB, free: 13.77 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.931e-05/0.4585, allocations: 7.438 kB / 0.7726 GB, free: 13.76 MB / 0.545 GB Notification: Performance of SimCode: time 3.21e-07/0.4585, allocations: 0 / 0.7726 GB, free: 13.76 MB / 0.545 GB Notification: Performance of Templates: time 0.003002/0.4615, allocations: 0.5684 MB / 0.7731 GB, free: 13.2 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)