Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_11_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.007112/0.007112, allocations: 98.05 kB / 15.73 MB, free: 5.551 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.00118/0.00118, allocations: 190 kB / 16.67 MB, free: 5.473 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.619/2.619, allocations: 469.8 MB / 0.7425 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 63.91 kB / 1.065 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9057/0.907, allocations: 159.1 MB / 1.221 GB, free: 2.145 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002699/0.9097, allocations: 1.437 MB / 1.222 GB, free: 0.6992 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008223/0.9105, allocations: 459 kB / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.658e-05/0.9105, allocations: 3.938 kB / 1.222 GB, free: 248 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.276e-05/0.9105, allocations: 7.922 kB / 1.222 GB, free: 240 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.98e-05/0.9106, allocations: 7.938 kB / 1.222 GB, free: 232 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.9108, allocations: 27.97 kB / 1.222 GB, free: 204 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.26e-05/0.9109, allocations: 27.92 kB / 1.223 GB, free: 176 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.916e-05/0.911, allocations: 0 / 1.223 GB, free: 176 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.895e-05/0.9111, allocations: 15.88 kB / 1.223 GB, free: 160 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.155e-05/0.9111, allocations: 11.98 kB / 1.223 GB, free: 148 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.9111, allocations: 4 kB / 1.223 GB, free: 144 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.418e-05/0.9112, allocations: 19.97 kB / 1.223 GB, free: 124 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.363e-05/0.9112, allocations: 7.922 kB / 1.223 GB, free: 116 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.409e-05/0.9113, allocations: 8 kB / 1.223 GB, free: 108 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.9114, allocations: 31.89 kB / 1.223 GB, free: 76 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.9114, allocations: 4 kB / 1.223 GB, free: 72 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.433e-06/0.9114, allocations: 0 / 1.223 GB, free: 72 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.503e-06/0.9114, allocations: 0 / 1.223 GB, free: 72 kB / 0.9356 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.0005046/0.9119, allocations: 348 kB / 1.223 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.9119, allocations: 12.02 kB / 1.223 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.399e-05/0.912, allocations: 8.891 kB / 1.223 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.9121, allocations: 172.2 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.9121, allocations: 384 / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.9121, allocations: 12.31 kB / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.9123, allocations: 49.98 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.9123, allocations: 4 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.9123, allocations: 0 / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.9123, allocations: 0 / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001551/0.9125, allocations: 31.97 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003431/0.9128, allocations: 264.8 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.913, allocations: 34.56 kB / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.411e-05/0.913, allocations: 20.89 kB / 1.224 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/0.9132, allocations: 81.11 kB / 1.224 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.9132, allocations: 38.56 kB / 1.224 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.9132, allocations: 0 / 1.224 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0003431/0.9135, allocations: 89.53 kB / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.9136, allocations: 51.41 kB / 1.224 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.155e-05/0.9136, allocations: 105.8 kB / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/0.9137, allocations: 25.7 kB / 1.224 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.831e-05/0.9137, allocations: 84.14 kB / 1.224 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.9138, allocations: 8.078 kB / 1.224 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-05/0.9138, allocations: 13.72 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.9139, allocations: 318.8 kB / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.757e-05/0.914, allocations: 15.98 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.213e-05/0.9141, allocations: 19.92 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.9142, allocations: 48.81 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.9142, allocations: 0 / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001741/0.9144, allocations: 65.61 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.9144, allocations: 4 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.9144, allocations: 0 / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.9144, allocations: 0 / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.358e-05/0.9145, allocations: 11.98 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.9145, allocations: 0 / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.425e-05/0.9145, allocations: 12.02 kB / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-06/0.9146, allocations: 0 / 1.224 GB, free: 13.92 MB / 0.9512 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 9.547e-05/0.9146, allocations: 117.8 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/0.9147, allocations: 3.953 kB / 1.225 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002205/0.9149, allocations: 68.78 kB / 1.225 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.9149, allocations: 11.88 kB / 1.225 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.9149, allocations: 4.031 kB / 1.225 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.9149, allocations: 3.984 kB / 1.225 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.9151, allocations: 157.6 kB / 1.225 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.9151, allocations: 0 / 1.225 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.452e-05/0.9151, allocations: 11.98 kB / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.9151, allocations: 0 / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.313e-06/0.9151, allocations: 0 / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.9151, allocations: 0 / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.9151, allocations: 0 / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002253/0.9154, allocations: 167.5 kB / 1.225 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.754e-05/0.9154, allocations: 77.11 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.9154, allocations: 4 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.904e-05/0.9155, allocations: 4.234 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.9155, allocations: 4 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.9155, allocations: 4 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.745e-05/0.9156, allocations: 87.3 kB / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.9156, allocations: 7.938 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002147/0.9158, allocations: 11.94 kB / 1.225 GB, free: 13.09 MB / 0.9512 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.0001575/0.9159, allocations: 99.23 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002049/0.9161, allocations: 39.95 kB / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.9162, allocations: 0 / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.649e-05/0.9162, allocations: 24.05 kB / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.9165, allocations: 7.922 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003022/0.9168, allocations: 113.3 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.9171, allocations: 0.6806 MB / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.381e-05/0.9171, allocations: 4 kB / 1.226 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.944e-05/0.9171, allocations: 7.438 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of SimCode: time 3.01e-07/0.9171, allocations: 0 / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of Templates: time 0.002805/0.9199, allocations: 0.5629 MB / 1.227 GB, free: 11.5 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches