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.006021/0.006021, allocations: 101.6 kB / 15.73 MB, free: 6.055 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.001359/0.001359, allocations: 198.4 kB / 16.68 MB, free: 5.984 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.505/1.505, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.838/2.838, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 59.91 kB / 1.054 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3151, allocations: 157.4 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001596/0.3168, allocations: 0.5891 MB / 1.208 GB, free: 9.062 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0006201/0.3174, allocations: 322.8 kB / 1.209 GB, free: 8.746 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.631e-05/0.3174, allocations: 3.938 kB / 1.209 GB, free: 8.742 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.701e-05/0.3174, allocations: 4 kB / 1.209 GB, free: 8.738 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.111e-06/0.3175, allocations: 4 kB / 1.209 GB, free: 8.734 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.3179, allocations: 103.5 kB / 1.209 GB, free: 8.633 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 4.126e-05/0.318, allocations: 8 kB / 1.209 GB, free: 8.625 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.226e-05/0.318, allocations: 0 / 1.209 GB, free: 8.625 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.384e-05/0.318, allocations: 0 / 1.209 GB, free: 8.625 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.247e-05/0.3181, allocations: 4 kB / 1.209 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.636e-06/0.3181, allocations: 0 / 1.209 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003932/0.3185, allocations: 271.6 kB / 1.209 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.105e-05/0.3185, allocations: 7.984 kB / 1.209 GB, free: 8.348 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.484e-05/0.3185, allocations: 4 kB / 1.209 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.3187, allocations: 91.8 kB / 1.209 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3187, allocations: 0 / 1.209 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3187, allocations: 0 / 1.209 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.3187, allocations: 0 / 1.209 GB, free: 8.254 MB / 0.9669 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.0003228/0.319, allocations: 327.6 kB / 1.209 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.3191, allocations: 8.625 kB / 1.209 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.658e-05/0.3191, allocations: 4.875 kB / 1.209 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.3192, allocations: 168.4 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-06/0.3193, allocations: 4.375 kB / 1.21 GB, free: 7.664 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.3193, allocations: 4.312 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.749e-05/0.3194, allocations: 26.27 kB / 1.21 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.3194, allocations: 192 / 1.21 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.3194, allocations: 3.938 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.3194, allocations: 4 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.404e-05/0.3194, allocations: 4 kB / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.3196, allocations: 141.7 kB / 1.21 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 3.481e-05/0.3196, allocations: 26.59 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.59e-05/0.3197, allocations: 8.797 kB / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005166/0.3202, allocations: 425.6 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.938e-05/0.3202, allocations: 30.56 kB / 1.21 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.3202, allocations: 4 kB / 1.21 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001456/0.3204, allocations: 41.64 kB / 1.21 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.3204, allocations: 51.41 kB / 1.21 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.656e-05/0.3205, allocations: 89.86 kB / 1.21 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.3205, allocations: 25.7 kB / 1.21 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.072e-05/0.3205, allocations: 80.14 kB / 1.211 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.112e-05/0.3206, allocations: 3.906 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-05/0.3206, allocations: 17.7 kB / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3207, allocations: 318.9 kB / 1.211 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.171e-05/0.3207, allocations: 7.938 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.35e-06/0.3207, allocations: 0 / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.474e-05/0.3208, allocations: 8.859 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3208, allocations: 0 / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.14e-05/0.3208, allocations: 33.7 kB / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.3209, allocations: 4 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3209, allocations: 96 / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.3209, allocations: 11.92 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.167e-05/0.3209, allocations: 0 / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.3209, allocations: 4 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.558e-06/0.321, allocations: 0 / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-06/0.321, allocations: 0 / 1.211 GB, free: 6.086 MB / 0.9669 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.492e-05/0.321, allocations: 109.8 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.859e-05/0.3211, allocations: 0 / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.287e-05/0.3212, allocations: 52.75 kB / 1.211 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3212, allocations: 0 / 1.211 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3212, allocations: 0 / 1.211 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3212, allocations: 3.984 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.134e-05/0.3213, allocations: 141.7 kB / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3213, allocations: 3.938 kB / 1.211 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.389e-05/0.3213, allocations: 4 kB / 1.211 GB, free: 5.715 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.3213, allocations: 4 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.3213, allocations: 3.938 kB / 1.211 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3213, allocations: 3.984 kB / 1.211 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3213, allocations: 0 / 1.211 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.36e-05/0.3214, allocations: 69.11 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.245e-05/0.3215, allocations: 81.05 kB / 1.211 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.527e-06/0.3215, allocations: 3.938 kB / 1.211 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.773e-06/0.3215, allocations: 0 / 1.211 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.623e-05/0.3215, allocations: 7.984 kB / 1.211 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.3215, allocations: 0 / 1.211 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 2.414e-05/0.3215, allocations: 75.28 kB / 1.211 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3215, allocations: 4.031 kB / 1.211 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002051/0.3218, allocations: 12 kB / 1.211 GB, free: 5.418 MB / 0.9669 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.0001883/0.3219, allocations: 119.2 kB / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 6.695e-05/0.322, allocations: 7.984 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.322, allocations: 0 / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.985e-06/0.322, allocations: 3.938 kB / 1.212 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.3222, allocations: 6.234 kB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001577/0.3223, allocations: 81.06 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.3226, allocations: 0.6729 MB / 1.212 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.381e-05/0.3226, allocations: 0 / 1.212 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.351e-05/0.3226, allocations: 11.44 kB / 1.212 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.3226, allocations: 0 / 1.212 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of Templates: time 0.002191/0.3248, allocations: 463.3 kB / 1.213 GB, free: 4.012 MB / 0.9669 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/jenkins/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