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.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.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.008255/0.008255, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001678/0.001678, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.5 MB, free: 4.555 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.378/2.378, allocations: 390.2 MB / 0.6649 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 71.91 kB / 0.8125 GB, free: 14.83 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6462/0.6477, allocations: 140.4 MB / 0.9496 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.CubicHermite): time 0.001694/0.6494, allocations: 0.6713 MB / 0.9503 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001394/0.6508, allocations: 1.407 MB / 0.9516 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.03e-05/0.6509, allocations: 0 / 0.9516 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.18e-05/0.6509, allocations: 3.938 kB / 0.9516 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.973e-05/0.651, allocations: 10.67 kB / 0.9516 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000449/0.6514, allocations: 144.7 kB / 0.9518 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.161e-05/0.6515, allocations: 36.22 kB / 0.9518 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.211e-05/0.6515, allocations: 6.109 kB / 0.9518 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.327e-05/0.6516, allocations: 17.89 kB / 0.9518 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.128e-05/0.6516, allocations: 29.2 kB / 0.9519 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.6517, allocations: 2.406 kB / 0.9519 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002618/0.6519, allocations: 184.2 kB / 0.952 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.021e-05/0.652, allocations: 22.73 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.652, allocations: 21.67 kB / 0.9521 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.6522, allocations: 124.6 kB / 0.9522 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.6522, allocations: 0 / 0.9522 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.21e-07/0.6522, allocations: 0 / 0.9522 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.6522, allocations: 0 / 0.9522 GB, free: 7.164 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000327/0.6525, allocations: 448.2 kB / 0.9526 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.6526, allocations: 14.64 kB / 0.9526 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.681e-05/0.6526, allocations: 4 kB / 0.9526 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.696e-05/0.6527, allocations: 173.7 kB / 0.9528 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.6527, allocations: 1.625 kB / 0.9528 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.6527, allocations: 7.375 kB / 0.9528 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001566/0.6529, allocations: 105.9 kB / 0.9529 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.6529, allocations: 0 / 0.9529 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.6529, allocations: 1.531 kB / 0.9529 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.6529, allocations: 0 / 0.9529 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.606e-05/0.653, allocations: 64.89 kB / 0.953 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000114/0.6532, allocations: 179.8 kB / 0.9532 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.6533, allocations: 80.67 kB / 0.9532 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.034e-05/0.6533, allocations: 75.23 kB / 0.9533 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.059e-06/0.6534, allocations: 0 / 0.9533 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.6534, allocations: 35.94 kB / 0.9533 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 7.91e-07/0.6534, allocations: 0 / 0.9533 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0003626/0.6538, allocations: 258.8 kB / 0.9536 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/0.6538, allocations: 78.23 kB / 0.9537 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.412e-05/0.6539, allocations: 143.4 kB / 0.9538 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.6539, allocations: 27.86 kB / 0.9538 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.016e-05/0.6539, allocations: 90.48 kB / 0.9539 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.654, allocations: 13.94 kB / 0.9539 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.063e-05/0.654, allocations: 30.36 kB / 0.954 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.751e-05/0.6541, allocations: 317.6 kB / 0.9543 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.6542, allocations: 100.3 kB / 0.9544 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.6543, allocations: 99.25 kB / 0.9544 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.6546, allocations: 287.2 kB / 0.9547 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.6546, allocations: 1.312 kB / 0.9547 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003094/0.6549, allocations: 325.7 kB / 0.955 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.229e-05/0.655, allocations: 78.53 kB / 0.9551 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.655, allocations: 1.531 kB / 0.9551 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.655, allocations: 0 / 0.9551 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.655, allocations: 3.938 kB / 0.9551 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.655, allocations: 1.438 kB / 0.9551 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.6551, allocations: 12.25 kB / 0.9551 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.6552, allocations: 4.344 kB / 0.9551 GB, free: 4.773 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: 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 7.137e-05/0.6552, allocations: 147.5 kB / 0.9553 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.6553, allocations: 15.42 kB / 0.9553 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.323e-05/0.6553, allocations: 9.188 kB / 0.9553 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.6553, allocations: 1.438 kB / 0.9553 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.6553, allocations: 0 / 0.9553 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.6553, allocations: 0 / 0.9553 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.228e-05/0.6554, allocations: 173 kB / 0.9555 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.6554, allocations: 0 / 0.9555 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.172e-06/0.6554, allocations: 4.812 kB / 0.9555 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.6554, allocations: 0 / 0.9555 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.6554, allocations: 6.281 kB / 0.9555 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.6554, allocations: 1.188 kB / 0.9555 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.6554, allocations: 4 kB / 0.9555 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002414/0.6557, allocations: 226.8 kB / 0.9557 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.102e-05/0.6557, allocations: 84.95 kB / 0.9558 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.6557, allocations: 7.625 kB / 0.9558 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.686e-05/0.6558, allocations: 2.656 kB / 0.9558 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.6558, allocations: 7.641 kB / 0.9558 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.6559, allocations: 7.562 kB / 0.9558 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.503e-05/0.6559, allocations: 109.5 kB / 0.9559 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6559, allocations: 0 / 0.9559 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003221/0.6562, allocations: 71.05 kB / 0.956 GB, free: 4.023 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: 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.0002585/0.6565, allocations: 149.4 kB / 0.9561 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003583/0.6569, allocations: 373.8 kB / 0.9565 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.6569, allocations: 3.938 kB / 0.9565 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.657, allocations: 131 kB / 0.9566 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001612/0.6572, allocations: 16.59 kB / 0.9566 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003275/0.6575, allocations: 250.1 kB / 0.9569 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.6576, allocations: 0.69 MB / 0.9575 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.045e-06/0.6576, allocations: 7.438 kB / 0.9575 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.6576, allocations: 0 / 0.9575 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of Templates: time 0.002993/0.6606, allocations: 1.657 MB / 0.9592 GB, free: 1.844 MB / 0.7169 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