Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.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.001581/0.001581, allocations: 103.1 kB / 16.27 MB, free: 5.992 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.001698/0.001699, allocations: 188.1 kB / 17.19 MB, free: 5.629 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.465/1.465, allocations: 222.9 MB / 240.9 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.781/2.781, allocations: 482.4 MB / 0.7553 GB, free: 6.957 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 67.42 kB / 0.9245 GB, free: 0 / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7168/0.7188, allocations: 162.2 MB / 1.083 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002395/0.7212, allocations: 1.434 MB / 1.084 GB, free: 0.6445 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006555/0.7219, allocations: 462.9 kB / 1.085 GB, free: 336 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.205e-05/0.7219, allocations: 4.5 kB / 1.085 GB, free: 332 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.239e-05/0.722, allocations: 4.547 kB / 1.085 GB, free: 328 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.384e-05/0.722, allocations: 4.781 kB / 1.085 GB, free: 324 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.7222, allocations: 17.08 kB / 1.085 GB, free: 320 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.616e-05/0.7223, allocations: 24.09 kB / 1.085 GB, free: 308 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.954e-05/0.7224, allocations: 13.12 kB / 1.085 GB, free: 300 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.177e-05/0.7224, allocations: 13.25 kB / 1.085 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.777e-05/0.7225, allocations: 10.33 kB / 1.085 GB, free: 288 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.7225, allocations: 5.031 kB / 1.085 GB, free: 284 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.585e-05/0.7226, allocations: 26.48 kB / 1.085 GB, free: 272 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.157e-05/0.7226, allocations: 6.094 kB / 1.085 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.132e-05/0.7226, allocations: 11.89 kB / 1.085 GB, free: 260 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.081e-05/0.7227, allocations: 26.81 kB / 1.085 GB, free: 252 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.7227, allocations: 0 / 1.085 GB, free: 252 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7227, allocations: 1.562 kB / 1.085 GB, free: 252 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.7227, allocations: 3.938 kB / 1.085 GB, free: 248 kB / 0.8262 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.0004079/0.7231, allocations: 340.3 kB / 1.085 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.7232, allocations: 9.062 kB / 1.085 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.675e-05/0.7232, allocations: 6.188 kB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.7233, allocations: 184 kB / 1.085 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.633e-06/0.7234, allocations: 384 / 1.085 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.7234, allocations: 2.688 kB / 1.085 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.7236, allocations: 57.23 kB / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.7236, allocations: 0 / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.7236, allocations: 0 / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.7236, allocations: 1.125 kB / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.7238, allocations: 36.58 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003414/0.7241, allocations: 248.8 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.7243, allocations: 40.53 kB / 1.086 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.101e-05/0.7244, allocations: 24.05 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001295/0.7245, allocations: 85.42 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.7245, allocations: 36.61 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 9.81e-07/0.7246, allocations: 0 / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0003661/0.7249, allocations: 84.91 kB / 1.086 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.725, allocations: 52.41 kB / 1.086 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.642e-05/0.7251, allocations: 110.8 kB / 1.086 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.7251, allocations: 25.7 kB / 1.086 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.813e-05/0.7251, allocations: 82.44 kB / 1.086 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.7252, allocations: 9.406 kB / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/0.7252, allocations: 13.5 kB / 1.086 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.7254, allocations: 312 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.056e-05/0.7254, allocations: 19.2 kB / 1.087 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.962e-05/0.7255, allocations: 17.7 kB / 1.087 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.7257, allocations: 46.06 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.7257, allocations: 0 / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002151/0.7259, allocations: 66.86 kB / 1.087 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.726, allocations: 7.031 kB / 1.087 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.726, allocations: 4.094 kB / 1.087 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.726, allocations: 0 / 1.087 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.477e-05/0.7261, allocations: 13.38 kB / 1.087 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.718e-06/0.7261, allocations: 0 / 1.087 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.852e-05/0.7261, allocations: 6.5 kB / 1.087 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-06/0.7261, allocations: 1.359 kB / 1.087 GB, free: 14.42 MB / 0.8419 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.778e-05/0.7262, allocations: 113.9 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.633e-05/0.7263, allocations: 5.594 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002562/0.7265, allocations: 76 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.7266, allocations: 0.6875 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.7266, allocations: 5.406 kB / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.7266, allocations: 0 / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001828/0.7268, allocations: 160.7 kB / 1.087 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.7268, allocations: 0 / 1.087 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.935e-05/0.7268, allocations: 9.016 kB / 1.087 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.7268, allocations: 2 kB / 1.087 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-06/0.7268, allocations: 4.031 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.7269, allocations: 4.781 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.7269, allocations: 0 / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002579/0.7271, allocations: 165.1 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.45e-05/0.7272, allocations: 79.36 kB / 1.087 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.7272, allocations: 1 kB / 1.087 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.543e-05/0.7273, allocations: 9.75 kB / 1.087 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.7273, allocations: 7.25 kB / 1.087 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.7273, allocations: 1.5 kB / 1.087 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.551e-05/0.7274, allocations: 85.11 kB / 1.087 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.677e-06/0.7274, allocations: 0 / 1.087 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002197/0.7276, allocations: 9.688 kB / 1.087 GB, free: 13.73 MB / 0.8419 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.0001467/0.7278, allocations: 107.1 kB / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002279/0.728, allocations: 44.05 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.728, allocations: 0 / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.518e-05/0.7281, allocations: 16.53 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.7284, allocations: 20.36 kB / 1.088 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002984/0.7287, allocations: 138.1 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.729, allocations: 0.68 MB / 1.088 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.556e-05/0.7291, allocations: 10.25 kB / 1.088 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of SimCode: time 2.184e-06/0.7291, allocations: 0 / 1.088 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of Templates: time 0.002247/0.7313, allocations: 0.6576 MB / 1.089 GB, free: 12.7 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches