Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_9_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.008717/0.008717, allocations: 99.92 kB / 15.73 MB, free: 5.965 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.002159/0.00216, allocations: 198.7 kB / 16.68 MB, free: 5.887 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.277/2.277, allocations: 390.2 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.91 kB / 0.9508 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.14/1.142, allocations: 140.4 MB / 1.088 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002789/1.145, allocations: 1.434 MB / 1.089 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009301/1.146, allocations: 472.8 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.343e-05/1.146, allocations: 1 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.976e-05/1.146, allocations: 3.938 kB / 1.09 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.431e-05/1.146, allocations: 6.016 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/1.146, allocations: 23.19 kB / 1.09 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.811e-05/1.146, allocations: 28.05 kB / 1.09 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/1.146, allocations: 5.328 kB / 1.09 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.583e-05/1.146, allocations: 13.8 kB / 1.09 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.467e-05/1.146, allocations: 17.23 kB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/1.146, allocations: 2.719 kB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/1.147, allocations: 18.94 kB / 1.09 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.854e-05/1.147, allocations: 5.125 kB / 1.09 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.576e-05/1.147, allocations: 12.52 kB / 1.09 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001648/1.147, allocations: 30.34 kB / 1.09 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.059e-05/1.147, allocations: 4.516 kB / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.695e-06/1.147, allocations: 0 / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.308e-06/1.147, allocations: 0 / 1.09 GB, free: 4.098 MB / 0.8575 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.0005973/1.147, allocations: 350.6 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/1.148, allocations: 9.438 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.494e-05/1.148, allocations: 2.906 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/1.148, allocations: 166.7 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/1.148, allocations: 9.281 kB / 1.09 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/1.148, allocations: 2 kB / 1.09 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/1.148, allocations: 60.94 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/1.148, allocations: 0.9062 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/1.148, allocations: 0 / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/1.148, allocations: 1.062 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/1.148, allocations: 37.05 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004037/1.149, allocations: 251.6 kB / 1.091 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/1.149, allocations: 45.05 kB / 1.091 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/1.149, allocations: 23.55 kB / 1.091 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000168/1.149, allocations: 82.83 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/1.149, allocations: 31.36 kB / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/1.149, allocations: 1.062 kB / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0004123/1.15, allocations: 83.64 kB / 1.091 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/1.15, allocations: 57.45 kB / 1.091 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.998e-05/1.15, allocations: 101.6 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/1.15, allocations: 25.7 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.374e-05/1.15, allocations: 86.97 kB / 1.091 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/1.15, allocations: 6.969 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/1.15, allocations: 20.7 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.226e-05/1.15, allocations: 313 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.682e-05/1.15, allocations: 18.33 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.745e-05/1.15, allocations: 15.14 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/1.15, allocations: 40.95 kB / 1.092 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/1.15, allocations: 5.188 kB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001932/1.15, allocations: 71.17 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/1.15, allocations: 5.312 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/1.15, allocations: 0.6094 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/1.151, allocations: 1.156 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.886e-05/1.151, allocations: 8.703 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/1.151, allocations: 0.5156 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.664e-05/1.151, allocations: 10.38 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/1.151, allocations: 1.094 kB / 1.092 GB, free: 2.277 MB / 0.8575 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 6.199e-05/1.151, allocations: 111.5 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/1.151, allocations: 2.391 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/1.151, allocations: 75.19 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/1.151, allocations: 1.609 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/1.151, allocations: 32 / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/1.151, allocations: 4.906 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/1.151, allocations: 160.3 kB / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/1.151, allocations: 4.734 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.769e-05/1.151, allocations: 9.328 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/1.151, allocations: 0.7969 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.944e-06/1.151, allocations: 256 / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/1.151, allocations: 5.312 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/1.151, allocations: 0 / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/1.151, allocations: 166.7 kB / 1.092 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.449e-05/1.152, allocations: 79.98 kB / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/1.152, allocations: 5.281 kB / 1.092 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.319e-05/1.152, allocations: 5.672 kB / 1.092 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/1.152, allocations: 2.656 kB / 1.092 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/1.152, allocations: 5.094 kB / 1.092 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.997e-05/1.152, allocations: 84.55 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/1.152, allocations: 5.312 kB / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002179/1.152, allocations: 5.188 kB / 1.092 GB, free: 1.578 MB / 0.8575 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.0001553/1.152, allocations: 104 kB / 1.093 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002443/1.152, allocations: 39.95 kB / 1.093 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/1.152, allocations: 0 / 1.093 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.343e-05/1.152, allocations: 20.8 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/1.153, allocations: 12.66 kB / 1.093 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002888/1.153, allocations: 112.9 kB / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001457/1.153, allocations: 0.6799 MB / 1.093 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.649e-05/1.153, allocations: 2.078 kB / 1.093 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.963e-05/1.153, allocations: 8.719 kB / 1.093 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/1.153, allocations: 3.938 kB / 1.093 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of Templates: time 0.003072/1.156, allocations: 0.5643 MB / 1.094 GB, free: 0.5586 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches