Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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.RegNonZeroPowerDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002074/0.002074, allocations: 193.5 kB / 16.14 MB, free: 6.645 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.506/1.506, allocations: 222.9 MB / 239.8 MB, free: 4.523 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.513/2.513, allocations: 390.2 MB / 0.6642 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 72.06 kB / 0.8119 GB, free: 14.92 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9616/0.9629, allocations: 140.4 MB / 0.9489 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.00228/0.9652, allocations: 0.6848 MB / 0.9496 GB, free: 8.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008299/0.9661, allocations: 384.2 kB / 0.95 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.768e-05/0.9661, allocations: 0 / 0.95 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.105e-05/0.9661, allocations: 0 / 0.95 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.4e-05/0.9662, allocations: 1.375 kB / 0.95 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004133/0.9666, allocations: 81.91 kB / 0.95 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.18e-05/0.9666, allocations: 17.61 kB / 0.9501 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.419e-05/0.9667, allocations: 2.75 kB / 0.9501 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.881e-05/0.9668, allocations: 13.42 kB / 0.9501 GB, free: 8.359 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.595e-05/0.9668, allocations: 18.72 kB / 0.9501 GB, free: 8.344 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.9669, allocations: 6.688 kB / 0.9501 GB, free: 8.34 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004166/0.9673, allocations: 269.9 kB / 0.9504 GB, free: 8.191 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.9e-05/0.9673, allocations: 6.75 kB / 0.9504 GB, free: 8.188 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.947e-05/0.9673, allocations: 10.67 kB / 0.9504 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.9675, allocations: 103.4 kB / 0.9505 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.9675, allocations: 4 kB / 0.9505 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.113e-06/0.9676, allocations: 0 / 0.9505 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.9676, allocations: 0 / 0.9505 GB, free: 8.105 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000448/0.968, allocations: 360.7 kB / 0.9508 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.9681, allocations: 9.625 kB / 0.9508 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.778e-05/0.9682, allocations: 3.688 kB / 0.9508 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.762e-05/0.9683, allocations: 169.6 kB / 0.951 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.9683, allocations: 5.75 kB / 0.951 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.901e-05/0.9683, allocations: 3.125 kB / 0.951 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/0.9685, allocations: 48.86 kB / 0.951 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.9685, allocations: 5.625 kB / 0.9511 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.9685, allocations: 3.938 kB / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.9685, allocations: 1.375 kB / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.267e-05/0.9686, allocations: 26.45 kB / 0.9511 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001854/0.9688, allocations: 170.3 kB / 0.9512 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.9689, allocations: 59.66 kB / 0.9513 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.845e-05/0.969, allocations: 25.31 kB / 0.9513 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006629/0.9696, allocations: 468.1 kB / 0.9518 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.9697, allocations: 32.78 kB / 0.9518 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.9697, allocations: 0 / 0.9518 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001242/0.9709, allocations: 0.5941 MB / 0.9524 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.9709, allocations: 56.88 kB / 0.9524 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.978e-05/0.971, allocations: 98.83 kB / 0.9525 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.971, allocations: 29.7 kB / 0.9526 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.468e-05/0.9711, allocations: 85.53 kB / 0.9526 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.902e-05/0.9711, allocations: 39.38 kB / 0.9527 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.356e-05/0.9711, allocations: 34.02 kB / 0.9527 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.484e-05/0.9712, allocations: 313.1 kB / 0.953 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.373e-05/0.9713, allocations: 27.2 kB / 0.953 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.889e-05/0.9713, allocations: 24.98 kB / 0.9531 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.445e-05/0.9714, allocations: 56.36 kB / 0.9531 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.62e-07/0.9714, allocations: 1.438 kB / 0.9531 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001614/0.9716, allocations: 98.89 kB / 0.9532 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.9716, allocations: 6.125 kB / 0.9532 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.83e-06/0.9716, allocations: 4 kB / 0.9532 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.9716, allocations: 0 / 0.9532 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.9718, allocations: 21.91 kB / 0.9532 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.9718, allocations: 0 / 0.9532 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.33e-05/0.9718, allocations: 4.984 kB / 0.9532 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.9718, allocations: 6.719 kB / 0.9532 GB, free: 5.289 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 (13): * Single equations (assignments): 13 * 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.659e-05/0.9719, allocations: 113 kB / 0.9534 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.9719, allocations: 11.69 kB / 0.9534 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001871/0.9721, allocations: 102.2 kB / 0.9535 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.9721, allocations: 5.469 kB / 0.9535 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.9721, allocations: 1.375 kB / 0.9535 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.9721, allocations: 3.984 kB / 0.9535 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003569/0.9725, allocations: 357.3 kB / 0.9538 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.9725, allocations: 0 / 0.9538 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.9726, allocations: 21.38 kB / 0.9538 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.9726, allocations: 1.125 kB / 0.9538 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.9727, allocations: 1.031 kB / 0.9538 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.9727, allocations: 5.141 kB / 0.9538 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.9727, allocations: 7.938 kB / 0.9539 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002554/0.9729, allocations: 216.4 kB / 0.9541 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.91e-05/0.973, allocations: 87.28 kB / 0.9541 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.973, allocations: 1.062 kB / 0.9541 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.805e-05/0.9731, allocations: 2.438 kB / 0.9541 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.146e-05/0.9731, allocations: 15.86 kB / 0.9542 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-06/0.9731, allocations: 2.75 kB / 0.9542 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.592e-05/0.9732, allocations: 81.47 kB / 0.9542 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9732, allocations: 0 / 0.9542 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002669/0.9735, allocations: 45.11 kB / 0.9543 GB, free: 4.336 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.000235/0.9737, allocations: 147.3 kB / 0.9544 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001547/0.9739, allocations: 61.23 kB / 0.9545 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.9739, allocations: 0 / 0.9545 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.426e-05/0.9739, allocations: 36.83 kB / 0.9545 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.9741, allocations: 4.562 kB / 0.9545 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003404/0.9745, allocations: 202.9 kB / 0.9547 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001365/0.9746, allocations: 0.6853 MB / 0.9554 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.049e-05/0.9747, allocations: 10.97 kB / 0.9554 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.384e-05/0.9747, allocations: 15.03 kB / 0.9554 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.9747, allocations: 0 / 0.9554 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of Templates: time 0.003846/0.9786, allocations: 1.389 MB / 0.9568 GB, free: 2.602 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches