Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite.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.Functions.Examples.CubicHermite,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|yMonotone",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite") translateModel(Buildings.Utilities.Math.Functions.Examples.CubicHermite,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|yMonotone",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001228, allocations: 113.5 kB / 16.41 MB, free: 6.492 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.001219/0.001219, allocations: 183 kB / 17.34 MB, free: 5.762 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.371/1.371, 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 9.1.3-maint.9.1.x/package.mo): time 2.459/2.459, allocations: 390.2 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 67.89 kB / 0.9516 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8737/0.8751, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.CubicHermite): time 0.001643/0.8768, allocations: 0.6125 MB / 1.089 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001705/0.8785, allocations: 1.387 MB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.693e-05/0.8786, allocations: 0 / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.146e-05/0.8786, allocations: 1.656 kB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.098e-05/0.8787, allocations: 5.672 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006992/0.8794, allocations: 181 kB / 1.091 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.8795, allocations: 52.56 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.152e-05/0.8796, allocations: 2.906 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.028e-05/0.8796, allocations: 20.5 kB / 1.091 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.761e-05/0.8797, allocations: 24.5 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.8797, allocations: 2.594 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003895/0.8801, allocations: 205.5 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.476e-05/0.8802, allocations: 14.03 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.04e-05/0.8802, allocations: 28.62 kB / 1.091 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.8805, allocations: 183.1 kB / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.8805, allocations: 1.094 kB / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8805, allocations: 0 / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.8805, allocations: 0 / 1.091 GB, free: 3.914 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003645/0.8809, allocations: 445 kB / 1.092 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.881, allocations: 9.156 kB / 1.092 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.881, allocations: 8.156 kB / 1.092 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.314e-05/0.8811, allocations: 178.8 kB / 1.092 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.8811, allocations: 5.906 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.8811, allocations: 2.906 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.8813, allocations: 109.6 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.8813, allocations: 0.875 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.8813, allocations: 0.75 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.8814, allocations: 0.6875 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001042/0.8815, allocations: 60.2 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001239/0.8816, allocations: 175.1 kB / 1.092 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.8817, allocations: 81.53 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.833e-05/0.8818, allocations: 70.97 kB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.754e-06/0.8818, allocations: 0 / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.8819, allocations: 40.89 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.8819, allocations: 0 / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0004195/0.8823, allocations: 251.5 kB / 1.093 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.8823, allocations: 79.88 kB / 1.093 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.8825, allocations: 147 kB / 1.093 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.8825, allocations: 27.2 kB / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.765e-05/0.8825, allocations: 92.7 kB / 1.093 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.8826, allocations: 15.5 kB / 1.093 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.8826, allocations: 29.12 kB / 1.093 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.845e-05/0.8827, allocations: 315 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.8828, allocations: 105.8 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.883, allocations: 105.8 kB / 1.094 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.8833, allocations: 286.3 kB / 1.094 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.8833, allocations: 0 / 1.094 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003809/0.8837, allocations: 327.1 kB / 1.094 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.307e-05/0.8837, allocations: 72.81 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.8837, allocations: 0.7969 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.8838, allocations: 0.75 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.323e-06/0.8838, allocations: 0.8125 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.8838, allocations: 0 / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.8839, allocations: 11.34 kB / 1.094 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.8839, allocations: 3.438 kB / 1.094 GB, free: 1.77 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: 1 (i) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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 8.082e-05/0.884, allocations: 152.1 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.896e-05/0.8841, allocations: 12.33 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.692e-05/0.8841, allocations: 10.64 kB / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.8841, allocations: 0 / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.8841, allocations: 1.703 kB / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.8841, allocations: 0 / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.16e-05/0.8842, allocations: 168.6 kB / 1.095 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.8842, allocations: 3.938 kB / 1.095 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.353e-06/0.8842, allocations: 5 kB / 1.095 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.8842, allocations: 7.938 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.8842, allocations: 7.578 kB / 1.095 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.8842, allocations: 0 / 1.095 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.8842, allocations: 0 / 1.095 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002865/0.8845, allocations: 225.2 kB / 1.095 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.322e-05/0.8846, allocations: 91.03 kB / 1.095 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.8846, allocations: 3 kB / 1.095 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.018e-05/0.8846, allocations: 4.906 kB / 1.095 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.805e-05/0.8847, allocations: 13.84 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.8847, allocations: 3.203 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.85e-05/0.8848, allocations: 105.7 kB / 1.095 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8848, allocations: 0.875 kB / 1.095 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003376/0.8851, allocations: 65.92 kB / 1.095 GB, free: 1.074 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: 1 (i) * Number of discrete states: 1 (i) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000272/0.8854, allocations: 149.8 kB / 1.095 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00047/0.8859, allocations: 377.6 kB / 1.096 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.8859, allocations: 4.062 kB / 1.096 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.886, allocations: 133.2 kB / 1.096 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001518/0.8862, allocations: 12.55 kB / 1.096 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003859/0.8866, allocations: 231.8 kB / 1.096 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001793/0.8868, allocations: 0.6901 MB / 1.097 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.658e-06/0.8868, allocations: 9.328 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of SimCode: time 3.01e-07/0.8868, allocations: 0.6875 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of Templates: time 0.004029/0.8908, allocations: 1.666 MB / 1.098 GB, free: 15.7 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_CubicHermite.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.CubicHermite.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches