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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009968/0.0009968, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001271/0.001271, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.442/2.442, allocations: 390.9 MB / 0.666 GB, free: 2.48 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003427, allocations: 12 kB / 0.8154 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8015/0.8018, allocations: 142.4 MB / 0.9544 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001543/0.8035, allocations: 1.152 MB / 0.9556 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006978/0.8042, allocations: 438 kB / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.856e-05/0.8042, allocations: 0 / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.134e-05/0.8042, allocations: 0 / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.221e-05/0.8043, allocations: 8.875 kB / 0.956 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.8045, allocations: 15.41 kB / 0.956 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.387e-05/0.8046, allocations: 19.58 kB / 0.956 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.536e-05/0.8047, allocations: 10.42 kB / 0.956 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6e-05/0.8048, allocations: 4.219 kB / 0.956 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.139e-05/0.8048, allocations: 19.02 kB / 0.9561 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.8048, allocations: 1.062 kB / 0.9561 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.025e-05/0.8049, allocations: 24.41 kB / 0.9561 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.134e-05/0.805, allocations: 1.25 kB / 0.9561 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.706e-05/0.805, allocations: 27.02 kB / 0.9561 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.726e-05/0.8051, allocations: 22.31 kB / 0.9561 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.8051, allocations: 0 / 0.9561 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.425e-06/0.8051, allocations: 1.312 kB / 0.9561 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.8051, allocations: 0 / 0.9561 GB, free: 6.41 MB / 0.7169 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.0003807/0.8055, allocations: 342.2 kB / 0.9565 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.8056, allocations: 9.312 kB / 0.9565 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.8056, allocations: 5.016 kB / 0.9565 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.572e-05/0.8057, allocations: 173 kB / 0.9566 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.8057, allocations: 5.125 kB / 0.9566 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/0.8057, allocations: 1 kB / 0.9566 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.8059, allocations: 61.83 kB / 0.9567 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.8059, allocations: 0 / 0.9567 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.8059, allocations: 0.6875 kB / 0.9567 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.8059, allocations: 1.031 kB / 0.9567 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001705/0.8061, allocations: 51.84 kB / 0.9567 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000318/0.8064, allocations: 253.8 kB / 0.957 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.8066, allocations: 44.53 kB / 0.957 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.176e-05/0.8067, allocations: 31.75 kB / 0.9571 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001183/0.8068, allocations: 83.53 kB / 0.9571 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.8068, allocations: 31.78 kB / 0.9572 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.8068, allocations: 0 / 0.9572 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003467/0.8072, allocations: 103.4 kB / 0.9573 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.8072, allocations: 52.41 kB / 0.9573 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.758e-05/0.8073, allocations: 103.7 kB / 0.9574 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.173e-06/0.8073, allocations: 26.86 kB / 0.9574 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.363e-05/0.8073, allocations: 85.12 kB / 0.9575 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.8074, allocations: 5.219 kB / 0.9575 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-06/0.8074, allocations: 8 kB / 0.9575 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.05e-05/0.8074, allocations: 316 kB / 0.9578 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.411e-05/0.8075, allocations: 17.64 kB / 0.9579 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.463e-05/0.8076, allocations: 26.28 kB / 0.9579 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.204e-05/0.8077, allocations: 23.39 kB / 0.9579 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.8077, allocations: 0 / 0.9579 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001772/0.8078, allocations: 81.94 kB / 0.958 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.8079, allocations: 5.375 kB / 0.958 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.8079, allocations: 0 / 0.958 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.8079, allocations: 1.125 kB / 0.958 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.194e-05/0.808, allocations: 16.31 kB / 0.958 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.808, allocations: 0 / 0.958 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.478e-05/0.8081, allocations: 6.469 kB / 0.958 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.8081, allocations: 1.531 kB / 0.958 GB, free: 4.516 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.962e-05/0.8081, allocations: 111.2 kB / 0.9581 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.8082, allocations: 9.375 kB / 0.9581 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002211/0.8084, allocations: 85.36 kB / 0.9582 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.8084, allocations: 8.031 kB / 0.9582 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.8084, allocations: 3.953 kB / 0.9582 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.8084, allocations: 1.188 kB / 0.9582 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001379/0.8086, allocations: 154.3 kB / 0.9584 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.8086, allocations: 0 / 0.9584 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.423e-05/0.8086, allocations: 16.8 kB / 0.9584 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.8087, allocations: 0 / 0.9584 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.8087, allocations: 1.312 kB / 0.9584 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.8087, allocations: 0 / 0.9584 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.8087, allocations: 1.406 kB / 0.9584 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002082/0.8089, allocations: 180.2 kB / 0.9586 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.09e-05/0.8089, allocations: 78.33 kB / 0.9586 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.8089, allocations: 9.078 kB / 0.9586 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.138e-05/0.809, allocations: 9.781 kB / 0.9586 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.8091, allocations: 5.047 kB / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.8091, allocations: 1.219 kB / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.966e-05/0.8091, allocations: 82.78 kB / 0.9587 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8091, allocations: 0 / 0.9587 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002205/0.8093, allocations: 9.859 kB / 0.9587 GB, free: 3.766 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001554/0.8095, allocations: 110.3 kB / 0.9588 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002032/0.8097, allocations: 46.08 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.8097, allocations: 1.875 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.977e-05/0.8098, allocations: 31.42 kB / 0.9589 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.8101, allocations: 7.719 kB / 0.9589 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002655/0.8104, allocations: 115.3 kB / 0.959 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001155/0.8105, allocations: 0.6781 MB / 0.9597 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.404e-05/0.8105, allocations: 1.531 kB / 0.9597 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.522e-05/0.8106, allocations: 12.94 kB / 0.9597 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of SimCode: time 9.72e-07/0.8106, allocations: 0 / 0.9597 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of Templates: time 0.002465/0.813, allocations: 489.2 kB / 0.9602 GB, free: 2.547 MB / 0.7169 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