Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_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_latest_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.001358/0.001358, allocations: 102.1 kB / 16.4 MB, free: 6.406 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.001383/0.001384, allocations: 192.2 kB / 17.35 MB, free: 5.695 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.383/1.383, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.737/2.737, allocations: 461.9 MB / 0.7354 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 64.36 kB / 1.055 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9139/0.9154, allocations: 157.4 MB / 1.208 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.002091/0.9176, allocations: 0.5853 MB / 1.209 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007479/0.9184, allocations: 322.8 kB / 1.209 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.205e-05/0.9184, allocations: 0 / 1.209 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.359e-05/0.9184, allocations: 0 / 1.209 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.702e-06/0.9184, allocations: 0 / 1.209 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004953/0.9189, allocations: 119.6 kB / 1.209 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.574e-05/0.919, allocations: 8 kB / 1.209 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.078e-05/0.9191, allocations: 0 / 1.209 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.726e-05/0.9191, allocations: 3.984 kB / 1.209 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.164e-05/0.9191, allocations: 0 / 1.209 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.838e-06/0.9191, allocations: 0 / 1.209 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004093/0.9195, allocations: 279.6 kB / 1.21 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.285e-05/0.9196, allocations: 0 / 1.21 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.495e-05/0.9196, allocations: 8 kB / 1.21 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.9198, allocations: 79.8 kB / 1.21 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.9198, allocations: 8 kB / 1.21 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.096e-06/0.9198, allocations: 0 / 1.21 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.146e-05/0.9198, allocations: 0 / 1.21 GB, free: 12.15 MB / 0.9356 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.0004898/0.9203, allocations: 327.6 kB / 1.21 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.9204, allocations: 8.031 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.9205, allocations: 0.9375 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.9207, allocations: 160.4 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.9207, allocations: 4.375 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.9207, allocations: 4.375 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.9208, allocations: 30.2 kB / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.9208, allocations: 192 / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.9209, allocations: 3.938 kB / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.9209, allocations: 3.938 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.806e-05/0.9209, allocations: 7.984 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002046/0.9211, allocations: 145.7 kB / 1.21 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 6.452e-05/0.9212, allocations: 22.61 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.375e-05/0.9212, allocations: 4.859 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006902/0.9219, allocations: 425.6 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.922, allocations: 34.5 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.922, allocations: 0 / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001918/0.9222, allocations: 45.62 kB / 1.211 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.9222, allocations: 55.41 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.164e-05/0.9223, allocations: 89.86 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.9223, allocations: 25.7 kB / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.904e-05/0.9224, allocations: 84.12 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.163e-05/0.9224, allocations: 0 / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.9225, allocations: 13.66 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001775/0.9226, allocations: 315 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.174e-05/0.9227, allocations: 4 kB / 1.212 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.622e-06/0.9227, allocations: 0 / 1.212 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.976e-05/0.9227, allocations: 20.78 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.9227, allocations: 0 / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.651e-05/0.9228, allocations: 29.7 kB / 1.212 GB, free: 10 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.9228, allocations: 8 kB / 1.212 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.9228, allocations: 0 / 1.212 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.9229, allocations: 3.938 kB / 1.212 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.677e-05/0.9229, allocations: 4.094 kB / 1.212 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.9229, allocations: 0 / 1.212 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.01e-05/0.9229, allocations: 4 kB / 1.212 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.523e-06/0.923, allocations: 0 / 1.212 GB, free: 9.984 MB / 0.9356 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 9.692e-05/0.9231, allocations: 105.8 kB / 1.212 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.288e-05/0.9231, allocations: 7.891 kB / 1.212 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.9232, allocations: 48.7 kB / 1.212 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.9232, allocations: 0 / 1.212 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.9232, allocations: 4.031 kB / 1.212 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.9232, allocations: 0 / 1.212 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.9234, allocations: 145.7 kB / 1.212 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.9234, allocations: 4 kB / 1.212 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.49e-05/0.9234, allocations: 4 kB / 1.212 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.9234, allocations: 0 / 1.212 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.9234, allocations: 3.938 kB / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.9234, allocations: 0 / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.9235, allocations: 0 / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001127/0.9236, allocations: 69.06 kB / 1.212 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.275e-05/0.9237, allocations: 84.84 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.9237, allocations: 3.938 kB / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.303e-06/0.9237, allocations: 0 / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.927e-05/0.9237, allocations: 0 / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-06/0.9237, allocations: 4 kB / 1.212 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.49e-05/0.9238, allocations: 75.28 kB / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9238, allocations: 0 / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002297/0.924, allocations: 16.03 kB / 1.212 GB, free: 9.32 MB / 0.9356 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.0002481/0.9243, allocations: 115.2 kB / 1.212 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 9.364e-05/0.9244, allocations: 8 kB / 1.212 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.9244, allocations: 0 / 1.212 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.576e-06/0.9244, allocations: 0 / 1.212 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001519/0.9245, allocations: 7.938 kB / 1.212 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002513/0.9248, allocations: 102.6 kB / 1.212 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.9252, allocations: 0.673 MB / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.151e-05/0.9252, allocations: 11.44 kB / 1.213 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.9252, allocations: 0 / 1.213 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of Templates: time 0.00235/0.9276, allocations: 475.2 kB / 1.214 GB, free: 7.879 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches