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.001207/0.001207, allocations: 111.4 kB / 15.99 MB, free: 6.359 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.001286/0.001286, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.331/1.331, allocations: 222.9 MB / 240.6 MB, free: 13.72 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.461/2.461, allocations: 437 MB / 0.7107 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 72.34 kB / 0.8694 GB, free: 2.523 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2764, allocations: 151.6 MB / 1.017 GB, free: 10.97 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002719/0.2792, allocations: 1.502 MB / 1.019 GB, free: 9.453 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007349/0.2799, allocations: 389 kB / 1.019 GB, free: 9.07 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.331e-05/0.28, allocations: 0 / 1.019 GB, free: 9.07 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.843e-05/0.28, allocations: 0 / 1.019 GB, free: 9.07 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.584e-05/0.2801, allocations: 3.938 kB / 1.019 GB, free: 9.066 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005055/0.2806, allocations: 99.83 kB / 1.019 GB, free: 8.969 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.363e-05/0.2807, allocations: 31.92 kB / 1.019 GB, free: 8.938 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.326e-05/0.2808, allocations: 7.984 kB / 1.019 GB, free: 8.93 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 4.57e-05/0.2809, allocations: 11.94 kB / 1.019 GB, free: 8.918 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.021e-05/0.2809, allocations: 15.92 kB / 1.019 GB, free: 8.902 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.2809, allocations: 0 / 1.019 GB, free: 8.902 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003828/0.2813, allocations: 267.7 kB / 1.02 GB, free: 8.641 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.216e-05/0.2813, allocations: 11.98 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.611e-05/0.2814, allocations: 7.938 kB / 1.02 GB, free: 8.621 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.2815, allocations: 75.86 kB / 1.02 GB, free: 8.547 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2816, allocations: 0 / 1.02 GB, free: 8.547 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2816, allocations: 0 / 1.02 GB, free: 8.547 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.2816, allocations: 4 kB / 1.02 GB, free: 8.543 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.0005112/0.2821, allocations: 363.6 kB / 1.02 GB, free: 8.137 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.2821, allocations: 12.92 kB / 1.02 GB, free: 8.125 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.423e-05/0.2822, allocations: 0.9375 kB / 1.02 GB, free: 8.125 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.2824, allocations: 176.2 kB / 1.02 GB, free: 7.914 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.2824, allocations: 4.375 kB / 1.02 GB, free: 7.91 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.2824, allocations: 384 / 1.02 GB, free: 7.91 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.2826, allocations: 54.23 kB / 1.02 GB, free: 7.852 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2826, allocations: 192 / 1.02 GB, free: 7.852 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.2826, allocations: 3.938 kB / 1.02 GB, free: 7.848 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2826, allocations: 0 / 1.02 GB, free: 7.848 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.2828, allocations: 31.97 kB / 1.02 GB, free: 7.816 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003501/0.2832, allocations: 252.9 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.2833, allocations: 50.44 kB / 1.021 GB, free: 7.461 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.697e-05/0.2834, allocations: 24.89 kB / 1.021 GB, free: 7.434 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006912/0.2841, allocations: 457.5 kB / 1.021 GB, free: 6.895 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.2842, allocations: 34.56 kB / 1.021 GB, free: 6.852 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.2842, allocations: 0 / 1.021 GB, free: 6.852 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0003783/0.2845, allocations: 81.64 kB / 1.021 GB, free: 6.766 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.2846, allocations: 63.47 kB / 1.021 GB, free: 6.691 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.726e-05/0.2847, allocations: 101.8 kB / 1.021 GB, free: 6.582 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.2847, allocations: 29.7 kB / 1.021 GB, free: 6.547 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.085e-05/0.2847, allocations: 80.14 kB / 1.022 GB, free: 6.465 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.2848, allocations: 11.78 kB / 1.022 GB, free: 6.453 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.2848, allocations: 21.7 kB / 1.022 GB, free: 6.426 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.894e-05/0.2849, allocations: 310.8 kB / 1.022 GB, free: 6.113 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.366e-05/0.285, allocations: 15.98 kB / 1.022 GB, free: 6.098 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.028e-05/0.2851, allocations: 19.98 kB / 1.022 GB, free: 6.078 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.2852, allocations: 44.81 kB / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2852, allocations: 0 / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000202/0.2854, allocations: 69.55 kB / 1.022 GB, free: 5.957 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.2855, allocations: 12.08 kB / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2855, allocations: 0 / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.2855, allocations: 0 / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.163e-05/0.2856, allocations: 8 kB / 1.022 GB, free: 5.938 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.2856, allocations: 0 / 1.022 GB, free: 5.938 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.608e-05/0.2856, allocations: 7.984 kB / 1.022 GB, free: 5.93 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.2857, allocations: 0 / 1.022 GB, free: 5.93 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.386e-05/0.2857, allocations: 120.1 kB / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.2858, allocations: 7.906 kB / 1.022 GB, free: 5.797 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002248/0.286, allocations: 77.17 kB / 1.022 GB, free: 5.715 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.286, allocations: 0 / 1.022 GB, free: 5.715 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.286, allocations: 0 / 1.022 GB, free: 5.715 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.286, allocations: 0 / 1.022 GB, free: 5.715 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.2862, allocations: 161.9 kB / 1.022 GB, free: 5.508 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2862, allocations: 11.94 kB / 1.022 GB, free: 5.496 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.855e-05/0.2863, allocations: 7.984 kB / 1.022 GB, free: 5.488 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2863, allocations: 4.031 kB / 1.022 GB, free: 5.484 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.2863, allocations: 0 / 1.022 GB, free: 5.484 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.2863, allocations: 3.984 kB / 1.022 GB, free: 5.48 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2863, allocations: 4 kB / 1.022 GB, free: 5.477 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002429/0.2866, allocations: 163.5 kB / 1.023 GB, free: 5.301 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.2866, allocations: 77.11 kB / 1.023 GB, free: 5.207 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.2866, allocations: 4.031 kB / 1.023 GB, free: 5.203 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.409e-05/0.2867, allocations: 7.984 kB / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.2867, allocations: 0 / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.2868, allocations: 4 kB / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.521e-05/0.2868, allocations: 87.27 kB / 1.023 GB, free: 5.105 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2868, allocations: 0 / 1.023 GB, free: 5.105 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002288/0.287, allocations: 12 kB / 1.023 GB, free: 5.094 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.000171/0.2872, allocations: 115.2 kB / 1.023 GB, free: 4.969 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002055/0.2874, allocations: 39.97 kB / 1.023 GB, free: 4.93 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2874, allocations: 0 / 1.023 GB, free: 4.93 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.337e-05/0.2875, allocations: 19.98 kB / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.2878, allocations: 14.25 kB / 1.023 GB, free: 4.898 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002864/0.2881, allocations: 139.4 kB / 1.023 GB, free: 4.73 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.2884, allocations: 0.6729 MB / 1.024 GB, free: 4.031 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.467e-05/0.2884, allocations: 11.44 kB / 1.024 GB, free: 4.02 MB / 0.795 GB Notification: Performance of SimCode: time 3.31e-07/0.2884, allocations: 7.938 kB / 1.024 GB, free: 4.012 MB / 0.795 GB Notification: Performance of Templates: time 0.002211/0.2906, allocations: 0.7026 MB / 1.024 GB, free: 3.312 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