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.001217/0.001217, allocations: 118.6 kB / 16.42 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.001201/0.001201, allocations: 183.9 kB / 17.35 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.25/1.25, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002086/0.002086, allocations: 286.5 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8838/0.8838, allocations: 169.2 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 99.86 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3742, allocations: 86.98 MB / 0.7671 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002316/0.3766, allocations: 1.43 MB / 0.7685 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0006762/0.3773, allocations: 465.6 kB / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.901e-05/0.3773, allocations: 0 / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.407e-05/0.3773, allocations: 3.938 kB / 0.7689 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.762e-05/0.3774, allocations: 7.938 kB / 0.7689 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001644/0.3776, allocations: 19.92 kB / 0.7689 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.803e-05/0.3776, allocations: 23.92 kB / 0.769 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 7.198e-05/0.3777, allocations: 15.98 kB / 0.769 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.009e-05/0.3778, allocations: 15.92 kB / 0.769 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.397e-05/0.3778, allocations: 7.922 kB / 0.769 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.3778, allocations: 4 kB / 0.769 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.17e-05/0.3779, allocations: 23.98 kB / 0.769 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.808e-06/0.3779, allocations: 4 kB / 0.769 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.035e-05/0.3779, allocations: 11.92 kB / 0.769 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.942e-05/0.378, allocations: 35.89 kB / 0.7691 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.378, allocations: 0 / 0.7691 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.453e-06/0.378, allocations: 0 / 0.7691 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.616e-06/0.3781, allocations: 4 kB / 0.7691 GB, free: 1.852 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.0003739/0.3784, allocations: 347.1 kB / 0.7694 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.3785, allocations: 12.03 kB / 0.7694 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.498e-05/0.3785, allocations: 0.9375 kB / 0.7694 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.909e-05/0.3786, allocations: 168.3 kB / 0.7696 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.124e-06/0.3786, allocations: 4.375 kB / 0.7696 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.3786, allocations: 384 / 0.7696 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.3788, allocations: 54 kB / 0.7696 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3788, allocations: 3.984 kB / 0.7696 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.3788, allocations: 3.984 kB / 0.7696 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.3788, allocations: 0 / 0.7696 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001537/0.379, allocations: 31.97 kB / 0.7697 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002742/0.3793, allocations: 259.4 kB / 0.7699 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.3794, allocations: 34.56 kB / 0.77 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.289e-05/0.3795, allocations: 24.91 kB / 0.77 GB, free: 0.7812 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.3796, allocations: 81.09 kB / 0.7701 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.81e-05/0.3796, allocations: 34.56 kB / 0.7701 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.423e-06/0.3796, allocations: 3.938 kB / 0.7701 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0003237/0.38, allocations: 89.58 kB / 0.7702 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.38, allocations: 51.41 kB / 0.7702 GB, free: 492 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.056e-05/0.3801, allocations: 101.8 kB / 0.7703 GB, free: 380 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.3801, allocations: 29.69 kB / 0.7704 GB, free: 344 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.256e-05/0.3801, allocations: 88.14 kB / 0.7704 GB, free: 252 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.422e-05/0.3802, allocations: 3.906 kB / 0.7704 GB, free: 248 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.3802, allocations: 13.72 kB / 0.7705 GB, free: 228 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.8e-05/0.3803, allocations: 319 kB / 0.7708 GB, free: 15.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.823e-05/0.3804, allocations: 15.97 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.116e-05/0.3804, allocations: 19.98 kB / 0.7708 GB, free: 15.87 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.3806, allocations: 32.83 kB / 0.7708 GB, free: 15.83 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3806, allocations: 3.938 kB / 0.7708 GB, free: 15.83 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001893/0.3808, allocations: 73.66 kB / 0.7709 GB, free: 15.75 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.3808, allocations: 8 kB / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.3808, allocations: 0 / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.3809, allocations: 0 / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.673e-05/0.3809, allocations: 7.984 kB / 0.7709 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.339e-06/0.3809, allocations: 0 / 0.7709 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.637e-05/0.381, allocations: 8.156 kB / 0.7709 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.381, allocations: 8.031 kB / 0.7709 GB, free: 15.72 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 5.984e-05/0.3811, allocations: 120.2 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.371e-05/0.3811, allocations: 4 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002165/0.3813, allocations: 72.72 kB / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.3813, allocations: 0 / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3813, allocations: 0 / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.852e-05/0.3814, allocations: 77.11 kB / 0.7712 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.3814, allocations: 12.03 kB / 0.7712 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.781e-05/0.3815, allocations: 3.984 kB / 0.7712 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.931e-05/0.3815, allocations: 7.938 kB / 0.7712 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002336/0.3817, allocations: 144.9 kB / 0.7713 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002396/0.382, allocations: 242.8 kB / 0.7716 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.161e-05/0.3821, allocations: 19.98 kB / 0.7716 GB, free: 14.98 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3e-05/0.3821, allocations: 79.28 kB / 0.7717 GB, free: 14.9 MB / 0.545 GB Notification: Performance of Backend: time 1.71e-07/0.3821, allocations: 0 / 0.7717 GB, free: 14.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00039/0.3825, allocations: 104.9 kB / 0.7718 GB, free: 14.79 MB / 0.545 GB Notification: Performance of SimCode: time 0.0003866/0.3829, allocations: 0.5725 MB / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of Templates: time 0.002481/0.3854, allocations: 0.6751 MB / 0.773 GB, free: 13.5 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)