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.001684/0.001684, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001472, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.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.383/2.383, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 63.89 kB / 0.8125 GB, free: 14.48 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9113/0.9126, allocations: 140.4 MB / 0.9496 GB, free: 9.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003437/0.9161, allocations: 1.444 MB / 0.951 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00096/0.9171, allocations: 449.6 kB / 0.9514 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.291e-05/0.9172, allocations: 4 kB / 0.9514 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.069e-05/0.9173, allocations: 3.938 kB / 0.9514 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.462e-05/0.9174, allocations: 9.328 kB / 0.9514 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002794/0.9177, allocations: 30.59 kB / 0.9515 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.186e-05/0.9178, allocations: 18.12 kB / 0.9515 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.9179, allocations: 12.2 kB / 0.9515 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.63e-05/0.918, allocations: 7.375 kB / 0.9515 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.608e-05/0.918, allocations: 14.48 kB / 0.9515 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.9181, allocations: 2.562 kB / 0.9515 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.9182, allocations: 26.11 kB / 0.9515 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.433e-05/0.9182, allocations: 3.984 kB / 0.9515 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.256e-05/0.9182, allocations: 15.67 kB / 0.9516 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.9184, allocations: 28 kB / 0.9516 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.9184, allocations: 0 / 0.9516 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.196e-06/0.9184, allocations: 1.188 kB / 0.9516 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.9184, allocations: 0 / 0.9516 GB, free: 7.441 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.0004514/0.9189, allocations: 344.1 kB / 0.9519 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.9189, allocations: 8.531 kB / 0.9519 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.169e-05/0.919, allocations: 11.47 kB / 0.9519 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.765e-05/0.919, allocations: 169.8 kB / 0.9521 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.9191, allocations: 384 / 0.9521 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.9191, allocations: 1.781 kB / 0.9521 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001926/0.9193, allocations: 57.14 kB / 0.9521 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.9193, allocations: 1.094 kB / 0.9521 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.9193, allocations: 0 / 0.9521 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.9193, allocations: 0 / 0.9521 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.9195, allocations: 35 kB / 0.9522 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003124/0.9198, allocations: 253.6 kB / 0.9524 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.92, allocations: 43.97 kB / 0.9525 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.793e-05/0.9201, allocations: 22.97 kB / 0.9525 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001477/0.9202, allocations: 91.58 kB / 0.9526 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.9203, allocations: 35.66 kB / 0.9526 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 3.156e-06/0.9203, allocations: 0 / 0.9526 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000412/0.9207, allocations: 86.11 kB / 0.9527 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.734e-05/0.9208, allocations: 51.41 kB / 0.9527 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.431e-05/0.9208, allocations: 108.2 kB / 0.9528 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.025e-06/0.9208, allocations: 33.64 kB / 0.9529 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.274e-05/0.9209, allocations: 89.27 kB / 0.953 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.847e-05/0.9209, allocations: 1.094 kB / 0.953 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.54e-05/0.921, allocations: 12.22 kB / 0.953 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.08e-05/0.921, allocations: 320 kB / 0.9533 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.061e-05/0.9211, allocations: 13.42 kB / 0.9533 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.945e-05/0.9212, allocations: 22.2 kB / 0.9533 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.9214, allocations: 38.92 kB / 0.9533 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.9214, allocations: 0 / 0.9533 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001893/0.9216, allocations: 68.72 kB / 0.9534 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.9216, allocations: 6.25 kB / 0.9534 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.9216, allocations: 0 / 0.9534 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.9216, allocations: 4.094 kB / 0.9534 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.738e-05/0.9217, allocations: 14.23 kB / 0.9534 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.9217, allocations: 3.984 kB / 0.9534 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.818e-05/0.9218, allocations: 8.453 kB / 0.9534 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.9218, allocations: 1.188 kB / 0.9534 GB, free: 5.5 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.386e-05/0.9219, allocations: 114.9 kB / 0.9536 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.989e-05/0.9219, allocations: 1.625 kB / 0.9536 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002391/0.9222, allocations: 71.66 kB / 0.9536 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.9222, allocations: 0 / 0.9536 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.9222, allocations: 0 / 0.9536 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.9222, allocations: 1.188 kB / 0.9536 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.9223, allocations: 166.8 kB / 0.9538 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.9224, allocations: 0 / 0.9538 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.029e-05/0.9224, allocations: 9.172 kB / 0.9538 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.9224, allocations: 1.062 kB / 0.9538 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.9224, allocations: 3.938 kB / 0.9538 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.9225, allocations: 5.156 kB / 0.9538 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.9225, allocations: 0 / 0.9538 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002199/0.9227, allocations: 159.8 kB / 0.954 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.66e-05/0.9227, allocations: 82.27 kB / 0.954 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.9227, allocations: 8.969 kB / 0.954 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.664e-05/0.9228, allocations: 11.3 kB / 0.9541 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.279e-05/0.9229, allocations: 5.031 kB / 0.9541 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.9229, allocations: 1.125 kB / 0.9541 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.799e-05/0.9229, allocations: 82.97 kB / 0.9541 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9229, allocations: 1.156 kB / 0.9541 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002294/0.9232, allocations: 9.469 kB / 0.9542 GB, free: 4.758 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 (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.0001718/0.9233, allocations: 102.3 kB / 0.9542 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002341/0.9236, allocations: 42 kB / 0.9543 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.9236, allocations: 0 / 0.9543 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.006e-05/0.9237, allocations: 23.41 kB / 0.9543 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.924, allocations: 11.44 kB / 0.9543 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003468/0.9244, allocations: 105.5 kB / 0.9544 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000138/0.9245, allocations: 0.6846 MB / 0.9551 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.048e-05/0.9246, allocations: 1.125 kB / 0.9551 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.037e-05/0.9246, allocations: 9.5 kB / 0.9551 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.9246, allocations: 0 / 0.9551 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of Templates: time 0.003071/0.9277, allocations: 0.5593 MB / 0.9556 GB, free: 3.516 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