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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001158/0.001158, allocations: 102.5 kB / 16.35 MB, free: 5.824 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.001164/0.001164, allocations: 193.9 kB / 17.29 MB, free: 5.48 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.186/1.186, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.211/2.211, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 71.92 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2621, allocations: 153 MB / 1.027 GB, free: 2.094 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002617/0.2647, allocations: 1.466 MB / 1.028 GB, free: 0.6211 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0006699/0.2654, allocations: 467.6 kB / 1.029 GB, free: 160 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.078e-05/0.2655, allocations: 0 / 1.029 GB, free: 160 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.217e-05/0.2655, allocations: 3.984 kB / 1.029 GB, free: 156 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.908e-05/0.2656, allocations: 3.938 kB / 1.029 GB, free: 152 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001853/0.2658, allocations: 23.92 kB / 1.029 GB, free: 128 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.354e-05/0.2658, allocations: 27.92 kB / 1.029 GB, free: 100 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.93e-05/0.2659, allocations: 4 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.457e-05/0.266, allocations: 15.92 kB / 1.029 GB, free: 80 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.835e-05/0.266, allocations: 11.98 kB / 1.029 GB, free: 68 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.437e-05/0.2661, allocations: 4 kB / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.311e-05/0.2661, allocations: 19.92 kB / 1.029 GB, free: 44 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.735e-05/0.2662, allocations: 3.984 kB / 1.029 GB, free: 40 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.418e-05/0.2662, allocations: 15.88 kB / 1.029 GB, free: 24 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.2663, allocations: 28.03 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2663, allocations: 3.938 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2663, allocations: 0 / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.388e-06/0.2663, allocations: 4 kB / 1.029 GB, free: 15.98 MB / 0.8106 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.0004217/0.2668, allocations: 351.4 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.2668, allocations: 8.031 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.862e-05/0.2668, allocations: 4.938 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.2669, allocations: 160.4 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-06/0.267, allocations: 384 / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.267, allocations: 4.375 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.2671, allocations: 53.98 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.2671, allocations: 7.984 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.373e-06/0.2672, allocations: 0 / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.2672, allocations: 0 / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001445/0.2673, allocations: 39.89 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003193/0.2676, allocations: 252.8 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001122/0.2678, allocations: 38.56 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.794e-05/0.2678, allocations: 24.83 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001495/0.268, allocations: 81.11 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.268, allocations: 42.5 kB / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.61e-07/0.268, allocations: 0 / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002948/0.2683, allocations: 77.64 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.2684, allocations: 55.41 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.65e-05/0.2685, allocations: 101.8 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.2685, allocations: 25.7 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.372e-05/0.2685, allocations: 88.14 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.513e-05/0.2685, allocations: 3.906 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/0.2686, allocations: 9.719 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.2687, allocations: 327 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.971e-05/0.2688, allocations: 12.23 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.195e-05/0.2688, allocations: 15.98 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.269, allocations: 52.69 kB / 1.03 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.269, allocations: 0 / 1.03 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001717/0.2692, allocations: 65.73 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.2692, allocations: 7.281 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.2692, allocations: 3.938 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.2692, allocations: 4 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.985e-05/0.2693, allocations: 7.984 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.2693, allocations: 0 / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.349e-05/0.2694, allocations: 11.92 kB / 1.031 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-06/0.2694, allocations: 0 / 1.031 GB, free: 13.85 MB / 0.8106 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.364e-05/0.2694, allocations: 121.8 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.148e-05/0.2695, allocations: 0 / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002134/0.2697, allocations: 76.72 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.2697, allocations: 0 / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2697, allocations: 0 / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2697, allocations: 3.984 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.2699, allocations: 161.5 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.2699, allocations: 4.031 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.007e-05/0.2699, allocations: 11.98 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.2699, allocations: 0 / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.2699, allocations: 0 / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2699, allocations: 0 / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2699, allocations: 0 / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001982/0.2701, allocations: 171.4 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.897e-05/0.2702, allocations: 81.11 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.023e-05/0.2702, allocations: 0 / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.691e-05/0.2703, allocations: 7.984 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.052e-05/0.2703, allocations: 0 / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.2703, allocations: 3.938 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.492e-05/0.2704, allocations: 87.27 kB / 1.031 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2704, allocations: 0 / 1.031 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002082/0.2706, allocations: 8 kB / 1.031 GB, free: 13.02 MB / 0.8106 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.000149/0.2707, allocations: 107.2 kB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001861/0.2709, allocations: 35.95 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2709, allocations: 0 / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.573e-05/0.271, allocations: 23.92 kB / 1.031 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.2713, allocations: 12.12 kB / 1.031 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002631/0.2716, allocations: 106.4 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002507/0.2718, allocations: 0.6807 MB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.183e-05/0.2719, allocations: 3.938 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.85e-05/0.2719, allocations: 7.438 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.2719, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of Templates: time 0.002779/0.2747, allocations: 0.5727 MB / 1.033 GB, free: 11.43 MB / 0.8106 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=480 -s cvode -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