Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_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.0009043/0.0009044, allocations: 91.53 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 178.7 kB / 16.92 MB, free: 6.652 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.437/1.437, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.664/2.664, allocations: 443.2 MB / 0.7181 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.0003611, allocations: 10.97 kB / 0.8801 GB, free: 42.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.322, allocations: 155.2 MB / 1.032 GB, free: 4.746 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001801/0.3238, allocations: 1.172 MB / 1.033 GB, free: 3.566 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008365/0.3247, allocations: 408 kB / 1.033 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.717e-05/0.3247, allocations: 4 kB / 1.033 GB, free: 3.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.682e-05/0.3248, allocations: 0 / 1.033 GB, free: 3.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.977e-05/0.3248, allocations: 3.938 kB / 1.033 GB, free: 3.156 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000417/0.3252, allocations: 79.83 kB / 1.033 GB, free: 3.078 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.133e-05/0.3253, allocations: 27.92 kB / 1.033 GB, free: 3.051 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.133e-05/0.3254, allocations: 0 / 1.033 GB, free: 3.051 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.903e-05/0.3255, allocations: 15.92 kB / 1.033 GB, free: 3.035 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.091e-05/0.3255, allocations: 7.938 kB / 1.033 GB, free: 3.027 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.3256, allocations: 0 / 1.033 GB, free: 3.027 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004197/0.326, allocations: 275.6 kB / 1.034 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.517e-05/0.326, allocations: 0 / 1.034 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.468e-05/0.3261, allocations: 41.62 kB / 1.034 GB, free: 2.711 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.3262, allocations: 71.88 kB / 1.034 GB, free: 2.641 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3262, allocations: 0 / 1.034 GB, free: 2.641 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.254e-06/0.3262, allocations: 0 / 1.034 GB, free: 2.641 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.3263, allocations: 0 / 1.034 GB, free: 2.641 MB / 0.7794 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.0005198/0.3268, allocations: 367.7 kB / 1.034 GB, free: 2.23 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3268, allocations: 12.03 kB / 1.034 GB, free: 2.219 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.415e-05/0.3269, allocations: 4.844 kB / 1.034 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.3271, allocations: 168.4 kB / 1.034 GB, free: 2.012 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.3271, allocations: 384 / 1.034 GB, free: 2.012 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.3271, allocations: 384 / 1.034 GB, free: 2.012 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001977/0.3273, allocations: 58.17 kB / 1.034 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3273, allocations: 192 / 1.034 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.3273, allocations: 7.938 kB / 1.034 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.3273, allocations: 0 / 1.034 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.3275, allocations: 47.95 kB / 1.034 GB, free: 1.895 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003584/0.3279, allocations: 252.9 kB / 1.035 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.328, allocations: 50.5 kB / 1.035 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.428e-05/0.3282, allocations: 24.84 kB / 1.035 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007002/0.3289, allocations: 473.4 kB / 1.035 GB, free: 0.957 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.3289, allocations: 30.56 kB / 1.035 GB, free: 0.918 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.183e-06/0.3289, allocations: 0 / 1.035 GB, free: 0.918 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0004137/0.3293, allocations: 105.5 kB / 1.035 GB, free: 0.8086 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.3294, allocations: 51.41 kB / 1.035 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.145e-05/0.3295, allocations: 105.8 kB / 1.035 GB, free: 0.6328 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.3295, allocations: 25.83 kB / 1.035 GB, free: 0.6016 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.62e-05/0.3296, allocations: 92.14 kB / 1.035 GB, free: 0.5078 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.3296, allocations: 7.844 kB / 1.035 GB, free: 0.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.452e-05/0.3296, allocations: 9.719 kB / 1.035 GB, free: 496 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3298, allocations: 310.8 kB / 1.036 GB, free: 176 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.734e-05/0.3299, allocations: 31.91 kB / 1.036 GB, free: 144 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.083e-05/0.3299, allocations: 23.98 kB / 1.036 GB, free: 120 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.3301, allocations: 48.83 kB / 1.036 GB, free: 68 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.3301, allocations: 0 / 1.036 GB, free: 68 kB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002845/0.3304, allocations: 81.73 kB / 1.036 GB, free: 15.98 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.3304, allocations: 8 kB / 1.036 GB, free: 15.97 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.3305, allocations: 0 / 1.036 GB, free: 15.97 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.3305, allocations: 0 / 1.036 GB, free: 15.97 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.31e-05/0.3306, allocations: 16.27 kB / 1.036 GB, free: 15.95 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.3306, allocations: 0 / 1.036 GB, free: 15.95 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.9e-05/0.3306, allocations: 15.98 kB / 1.036 GB, free: 15.94 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.3307, allocations: 0 / 1.036 GB, free: 15.94 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.807e-05/0.3307, allocations: 119.2 kB / 1.036 GB, free: 15.81 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.891e-05/0.3308, allocations: 4 kB / 1.036 GB, free: 15.81 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002539/0.3311, allocations: 81.19 kB / 1.036 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3311, allocations: 0 / 1.036 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3311, allocations: 0 / 1.036 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.3311, allocations: 0 / 1.036 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001723/0.3313, allocations: 169.6 kB / 1.036 GB, free: 15.51 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.3313, allocations: 0 / 1.036 GB, free: 15.51 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.329e-05/0.3313, allocations: 19.95 kB / 1.036 GB, free: 15.49 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.3314, allocations: 0 / 1.036 GB, free: 15.49 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.3314, allocations: 0 / 1.036 GB, free: 15.49 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3314, allocations: 0 / 1.036 GB, free: 15.49 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.3314, allocations: 3.984 kB / 1.036 GB, free: 15.48 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.3317, allocations: 187.3 kB / 1.037 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.146e-05/0.3317, allocations: 77.11 kB / 1.037 GB, free: 15.19 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.3318, allocations: 4 kB / 1.037 GB, free: 15.19 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.54e-05/0.3318, allocations: 7.984 kB / 1.037 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.65e-05/0.3319, allocations: 0 / 1.037 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.3319, allocations: 4 kB / 1.037 GB, free: 15.18 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.289e-05/0.3319, allocations: 91.25 kB / 1.037 GB, free: 15.09 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3319, allocations: 0 / 1.037 GB, free: 15.09 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.00024/0.3322, allocations: 15.98 kB / 1.037 GB, free: 15.07 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.0001914/0.3324, allocations: 111.2 kB / 1.037 GB, free: 14.95 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.3326, allocations: 55.89 kB / 1.037 GB, free: 14.9 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3326, allocations: 0 / 1.037 GB, free: 14.9 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.215e-05/0.3327, allocations: 23.98 kB / 1.037 GB, free: 14.88 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.333, allocations: 7.938 kB / 1.037 GB, free: 14.87 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003109/0.3333, allocations: 138.5 kB / 1.037 GB, free: 14.7 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.3336, allocations: 0.6808 MB / 1.038 GB, free: 14 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.3337, allocations: 11.44 kB / 1.038 GB, free: 13.98 MB / 0.795 GB Notification: Performance of SimCode: time 3.91e-07/0.3337, allocations: 0 / 1.038 GB, free: 13.98 MB / 0.795 GB Notification: Performance of Templates: time 0.002197/0.3359, allocations: 0.6979 MB / 1.038 GB, free: 13.29 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches