Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 108.8 kB / 16.27 MB, free: 6.004 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.001725/0.001726, allocations: 187.4 kB / 17.2 MB, free: 5.617 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 / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.547/2.547, allocations: 437 MB / 0.711 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 64.03 kB / 0.8699 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2937, allocations: 151.6 MB / 1.018 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.00319/0.297, allocations: 1.437 MB / 1.019 GB, free: 9.227 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007882/0.2978, allocations: 387.4 kB / 1.02 GB, free: 8.844 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.536e-05/0.2979, allocations: 4 kB / 1.02 GB, free: 8.84 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.188e-05/0.2979, allocations: 3.938 kB / 1.02 GB, free: 8.836 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.57e-05/0.298, allocations: 0 / 1.02 GB, free: 8.836 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006297/0.2986, allocations: 120.8 kB / 1.02 GB, free: 8.719 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.038e-05/0.2987, allocations: 27.92 kB / 1.02 GB, free: 8.691 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.2988, allocations: 0 / 1.02 GB, free: 8.691 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.176e-05/0.2989, allocations: 15.92 kB / 1.02 GB, free: 8.676 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.496e-05/0.2989, allocations: 15.92 kB / 1.02 GB, free: 8.66 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.299, allocations: 4 kB / 1.02 GB, free: 8.656 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004098/0.2994, allocations: 271.7 kB / 1.02 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.744e-05/0.2994, allocations: 0 / 1.02 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.363e-05/0.2994, allocations: 19.91 kB / 1.02 GB, free: 8.371 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002539/0.2997, allocations: 107.8 kB / 1.02 GB, free: 8.266 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.2997, allocations: 0 / 1.02 GB, free: 8.266 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.004e-06/0.2997, allocations: 0 / 1.02 GB, free: 8.266 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.2997, allocations: 0 / 1.02 GB, free: 8.266 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000527/0.3003, allocations: 367.6 kB / 1.021 GB, free: 7.855 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/0.3003, allocations: 8.922 kB / 1.021 GB, free: 7.848 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.764e-05/0.3004, allocations: 4.938 kB / 1.021 GB, free: 7.844 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.3005, allocations: 164.4 kB / 1.021 GB, free: 7.645 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.3006, allocations: 4.375 kB / 1.021 GB, free: 7.641 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.3006, allocations: 8.359 kB / 1.021 GB, free: 7.633 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.3008, allocations: 46.25 kB / 1.021 GB, free: 7.582 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.3008, allocations: 192 / 1.021 GB, free: 7.582 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.3008, allocations: 7.875 kB / 1.021 GB, free: 7.574 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.3008, allocations: 0 / 1.021 GB, free: 7.574 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.301, allocations: 35.95 kB / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003613/0.3014, allocations: 258.3 kB / 1.021 GB, free: 7.238 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.3015, allocations: 38.5 kB / 1.021 GB, free: 7.191 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.64e-05/0.3016, allocations: 24.91 kB / 1.021 GB, free: 7.164 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006889/0.3023, allocations: 461.5 kB / 1.022 GB, free: 6.621 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.3024, allocations: 38.5 kB / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.262e-06/0.3024, allocations: 0 / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0003864/0.3028, allocations: 85.64 kB / 1.022 GB, free: 6.484 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.3028, allocations: 51.41 kB / 1.022 GB, free: 6.422 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.229e-05/0.3029, allocations: 113.8 kB / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.3029, allocations: 25.7 kB / 1.022 GB, free: 6.27 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.919e-05/0.303, allocations: 84.14 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.303, allocations: 15.83 kB / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.404e-05/0.3031, allocations: 9.719 kB / 1.022 GB, free: 6.152 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3032, allocations: 323 kB / 1.022 GB, free: 5.828 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.479e-05/0.3033, allocations: 15.98 kB / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.758e-05/0.3034, allocations: 15.98 kB / 1.022 GB, free: 5.797 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.3035, allocations: 44.75 kB / 1.022 GB, free: 5.75 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3035, allocations: 0 / 1.022 GB, free: 5.75 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002278/0.3038, allocations: 69.67 kB / 1.023 GB, free: 5.676 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.3038, allocations: 8 kB / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3038, allocations: 0 / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3038, allocations: 0 / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.884e-05/0.3039, allocations: 11.98 kB / 1.023 GB, free: 5.656 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.3039, allocations: 0 / 1.023 GB, free: 5.656 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.852e-05/0.304, allocations: 7.984 kB / 1.023 GB, free: 5.648 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.304, allocations: 3.984 kB / 1.023 GB, free: 5.645 MB / 0.795 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 (2): * Single equations (assignments): 2 * 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.651e-05/0.3041, allocations: 117.8 kB / 1.023 GB, free: 5.52 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.923e-05/0.3041, allocations: 11.89 kB / 1.023 GB, free: 5.508 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002406/0.3044, allocations: 69.12 kB / 1.023 GB, free: 5.434 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3044, allocations: 4 kB / 1.023 GB, free: 5.43 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3044, allocations: 0 / 1.023 GB, free: 5.43 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.3044, allocations: 3.984 kB / 1.023 GB, free: 5.426 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.3046, allocations: 161.6 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.3046, allocations: 4.031 kB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.256e-05/0.3046, allocations: 15.92 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3047, allocations: 0 / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-06/0.3047, allocations: 0 / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3047, allocations: 0 / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3047, allocations: 0 / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002708/0.305, allocations: 175.4 kB / 1.023 GB, free: 5.012 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.825e-05/0.305, allocations: 77.11 kB / 1.023 GB, free: 4.918 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.305, allocations: 0 / 1.023 GB, free: 4.918 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.499e-05/0.3051, allocations: 7.984 kB / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.3051, allocations: 0 / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.3052, allocations: 0 / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.914e-05/0.3052, allocations: 95.52 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3052, allocations: 0 / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002432/0.3055, allocations: 16 kB / 1.023 GB, free: 4.801 MB / 0.795 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 (2): * Single equations (assignments): 2 * 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.0001904/0.3057, allocations: 107.3 kB / 1.023 GB, free: 4.684 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002167/0.3059, allocations: 39.95 kB / 1.023 GB, free: 4.645 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.3059, allocations: 3.938 kB / 1.023 GB, free: 4.641 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.551e-05/0.306, allocations: 23.92 kB / 1.023 GB, free: 4.617 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/0.3063, allocations: 6.75 kB / 1.023 GB, free: 4.613 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003574/0.3067, allocations: 143.4 kB / 1.024 GB, free: 4.441 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.3069, allocations: 0.6807 MB / 1.024 GB, free: 3.734 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.248e-05/0.3069, allocations: 7.438 kB / 1.024 GB, free: 3.727 MB / 0.795 GB Notification: Performance of SimCode: time 3.31e-07/0.3069, allocations: 0 / 1.024 GB, free: 3.727 MB / 0.795 GB Notification: Performance of Templates: time 0.002543/0.3095, allocations: 0.6934 MB / 1.025 GB, free: 3.039 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches