Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.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.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008927/0.008927, allocations: 101.1 kB / 15.88 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.002058/0.002058, allocations: 193.5 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.367/1.367, allocations: 222.9 MB / 240.5 MB, free: 4.547 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.502/2.502, allocations: 390.3 MB / 0.6649 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 63.91 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6777/0.6793, allocations: 140.4 MB / 0.9496 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.002928/0.6823, allocations: 0.6379 MB / 0.9502 GB, free: 8.664 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001106/0.6834, allocations: 355.3 kB / 0.9506 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.425e-05/0.6835, allocations: 0 / 0.9506 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.007e-05/0.6835, allocations: 0 / 0.9506 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.614e-06/0.6835, allocations: 4 kB / 0.9506 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005958/0.6842, allocations: 67.25 kB / 0.9506 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.923e-05/0.6842, allocations: 1.281 kB / 0.9506 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.063e-05/0.6843, allocations: 1.25 kB / 0.9506 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.228e-05/0.6843, allocations: 1.281 kB / 0.9506 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.917e-05/0.6844, allocations: 0 / 0.9506 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.635e-05/0.6844, allocations: 1.531 kB / 0.9506 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007281/0.6851, allocations: 273.4 kB / 0.9509 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.718e-05/0.6852, allocations: 4 kB / 0.9509 GB, free: 8.199 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.739e-05/0.6852, allocations: 0 / 0.9509 GB, free: 8.199 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002158/0.6854, allocations: 60.52 kB / 0.951 GB, free: 8.16 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.6855, allocations: 0 / 0.951 GB, free: 8.16 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.522e-06/0.6855, allocations: 3.938 kB / 0.951 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.6855, allocations: 0 / 0.951 GB, free: 8.156 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004223/0.6859, allocations: 335.7 kB / 0.9513 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.259e-05/0.686, allocations: 9.625 kB / 0.9513 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.315e-05/0.6861, allocations: 2.312 kB / 0.9513 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.6862, allocations: 164.4 kB / 0.9515 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.6863, allocations: 4.312 kB / 0.9515 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.6863, allocations: 1.75 kB / 0.9515 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.6864, allocations: 27.64 kB / 0.9515 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.6865, allocations: 192 / 0.9515 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.6865, allocations: 5.312 kB / 0.9515 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.964e-06/0.6865, allocations: 0 / 0.9515 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.616e-05/0.6866, allocations: 9.359 kB / 0.9515 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001618/0.6867, allocations: 147.1 kB / 0.9516 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.673e-05/0.6868, allocations: 23.89 kB / 0.9517 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.564e-05/0.6868, allocations: 6.234 kB / 0.9517 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007205/0.6876, allocations: 424.9 kB / 0.9521 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.6876, allocations: 35.94 kB / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.954e-06/0.6876, allocations: 0 / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002575/0.6879, allocations: 43.12 kB / 0.9522 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/0.688, allocations: 52.78 kB / 0.9522 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.819e-05/0.688, allocations: 89.86 kB / 0.9523 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.408e-06/0.688, allocations: 25.7 kB / 0.9523 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.739e-05/0.688, allocations: 80.14 kB / 0.9524 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.071e-05/0.6881, allocations: 5.281 kB / 0.9524 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/0.6882, allocations: 11.22 kB / 0.9524 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.613e-05/0.6883, allocations: 320.2 kB / 0.9527 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.661e-05/0.6883, allocations: 0 / 0.9527 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.632e-05/0.6883, allocations: 9.375 kB / 0.9527 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.942e-05/0.6884, allocations: 11.59 kB / 0.9527 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.6884, allocations: 0 / 0.9527 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001154/0.6885, allocations: 32.58 kB / 0.9528 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.6886, allocations: 4.125 kB / 0.9528 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.6886, allocations: 1.469 kB / 0.9528 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.6886, allocations: 11.88 kB / 0.9528 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.584e-05/0.6887, allocations: 1.375 kB / 0.9528 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.6887, allocations: 1.375 kB / 0.9528 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.734e-05/0.6887, allocations: 3.938 kB / 0.9528 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.056e-06/0.6888, allocations: 0 / 0.9528 GB, free: 6.059 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 (1): * Single equations (assignments): 1 * 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 7.642e-05/0.6888, allocations: 111.2 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.137e-05/0.6889, allocations: 1.375 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.6891, allocations: 46.27 kB / 0.9529 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.6891, allocations: 7.922 kB / 0.9529 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.6891, allocations: 0 / 0.9529 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-06/0.6891, allocations: 1.375 kB / 0.9529 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.525e-05/0.6892, allocations: 149.7 kB / 0.9531 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.6892, allocations: 1.375 kB / 0.9531 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.031e-05/0.6893, allocations: 1.375 kB / 0.9531 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.6893, allocations: 0 / 0.9531 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.6893, allocations: 5.312 kB / 0.9531 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.6893, allocations: 0 / 0.9531 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.6893, allocations: 0 / 0.9531 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.6894, allocations: 67.97 kB / 0.9532 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.792e-05/0.6895, allocations: 78.48 kB / 0.9532 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.6895, allocations: 3.938 kB / 0.9532 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.371e-05/0.6895, allocations: 0 / 0.9532 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.744e-05/0.6896, allocations: 1.375 kB / 0.9532 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-06/0.6896, allocations: 0 / 0.9532 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.912e-05/0.6896, allocations: 80.69 kB / 0.9533 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.91e-07/0.6896, allocations: 0 / 0.9533 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003543/0.69, allocations: 8.25 kB / 0.9533 GB, free: 5.434 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 (1): * Single equations (assignments): 1 * 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.0002362/0.6902, allocations: 118.7 kB / 0.9534 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.077e-05/0.6903, allocations: 3.938 kB / 0.9534 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6904, allocations: 3.938 kB / 0.9534 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.76e-05/0.6904, allocations: 1.938 kB / 0.9534 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.6906, allocations: 2.219 kB / 0.9535 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002254/0.6909, allocations: 105.7 kB / 0.9536 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/0.691, allocations: 0.6707 MB / 0.9542 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.861e-05/0.691, allocations: 8.312 kB / 0.9542 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of SimCode: time 5.11e-07/0.691, allocations: 0 / 0.9542 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of Templates: time 0.002953/0.694, allocations: 460.1 kB / 0.9547 GB, free: 4.281 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches