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.001055/0.001055, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.008949/0.008949, allocations: 169.8 kB / 16.26 MB, free: 6.68 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.429/1.43, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.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.651/2.651, allocations: 437.8 MB / 0.7121 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000386/0.0003859, allocations: 12 kB / 0.8728 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6993/0.6998, allocations: 153.8 MB / 1.023 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001623/0.7014, allocations: 1.164 MB / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007171/0.7022, allocations: 415.6 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.304e-05/0.7022, allocations: 3.938 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.483e-05/0.7022, allocations: 4 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.329e-05/0.7023, allocations: 3.938 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000327/0.7026, allocations: 75.84 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.63e-05/0.7027, allocations: 23.92 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.958e-05/0.7028, allocations: 4 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.014e-05/0.7028, allocations: 15.92 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 3.515e-05/0.7029, allocations: 7.938 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.047e-05/0.7029, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003611/0.7033, allocations: 275.6 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.065e-05/0.7033, allocations: 0 / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.752e-05/0.7033, allocations: 37.64 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.7035, allocations: 111.8 kB / 1.025 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.7035, allocations: 4 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.935e-06/0.7035, allocations: 3.984 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.7035, allocations: 0 / 1.025 GB, free: 13.75 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.0004562/0.704, allocations: 353.5 kB / 1.025 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.704, allocations: 15.97 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.007e-05/0.7041, allocations: 4.844 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.7042, allocations: 172.3 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.7042, allocations: 4.375 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.326e-06/0.7043, allocations: 384 / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.7044, allocations: 54.23 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.221e-06/0.7045, allocations: 192 / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.7045, allocations: 7.938 kB / 1.026 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.7045, allocations: 0 / 1.026 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.7047, allocations: 47.95 kB / 1.026 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003219/0.705, allocations: 248.9 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.7051, allocations: 50.5 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.025e-05/0.7052, allocations: 28.91 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006384/0.7059, allocations: 461.5 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.7059, allocations: 38.5 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.7059, allocations: 0 / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003945/0.7063, allocations: 105.5 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.7064, allocations: 55.41 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.683e-05/0.7064, allocations: 105.8 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.7065, allocations: 25.83 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.061e-05/0.7065, allocations: 88.14 kB / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.7065, allocations: 3.906 kB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.15e-05/0.7066, allocations: 13.72 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.7067, allocations: 314.8 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.604e-05/0.7068, allocations: 23.98 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.813e-05/0.7069, allocations: 27.92 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.707, allocations: 44.83 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.707, allocations: 0 / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002128/0.7073, allocations: 89.59 kB / 1.027 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.7073, allocations: 8 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.7073, allocations: 0 / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.7073, allocations: 0 / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.604e-05/0.7074, allocations: 16.02 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.7074, allocations: 0 / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.959e-05/0.7075, allocations: 11.98 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.7075, allocations: 0 / 1.027 GB, free: 11.06 MB / 0.7794 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 6.487e-05/0.7076, allocations: 109.8 kB / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.569e-05/0.7076, allocations: 4 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003269/0.7079, allocations: 89.12 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.7079, allocations: 3.984 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.708, allocations: 0 / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.708, allocations: 0 / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002031/0.7082, allocations: 165.8 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.7082, allocations: 4 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.839e-05/0.7083, allocations: 16.02 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.7083, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.7083, allocations: 4 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.7084, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.7084, allocations: 4 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003646/0.7087, allocations: 175.4 kB / 1.028 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.981e-05/0.7088, allocations: 81.05 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.7088, allocations: 4 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.679e-05/0.7089, allocations: 11.98 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.351e-05/0.7089, allocations: 4 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.7089, allocations: 3.938 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.695e-05/0.709, allocations: 87.3 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.709, allocations: 0 / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002296/0.7092, allocations: 23.94 kB / 1.028 GB, free: 10.19 MB / 0.7794 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.0001727/0.7094, allocations: 111.2 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002156/0.7096, allocations: 51.95 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.7096, allocations: 0 / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.006e-05/0.7097, allocations: 23.98 kB / 1.028 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.71, allocations: 11.88 kB / 1.028 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002542/0.7103, allocations: 116.8 kB / 1.028 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.7105, allocations: 0.677 MB / 1.029 GB, free: 9.141 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.083e-05/0.7105, allocations: 7.938 kB / 1.029 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.621e-05/0.7106, allocations: 7.438 kB / 1.029 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.7106, allocations: 0 / 1.029 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of Templates: time 0.002631/0.7132, allocations: 0.6396 MB / 1.03 GB, free: 8.492 MB / 0.7794 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches