Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_9_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.001185/0.001185, allocations: 118.5 kB / 16.37 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.001137/0.001137, allocations: 192.8 kB / 17.31 MB, free: 5.613 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.222/1.222, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.017/2.017, allocations: 390.3 MB / 0.6655 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 67.47 kB / 0.814 GB, free: 32.82 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2274, allocations: 140.4 MB / 0.9511 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002295/0.2297, allocations: 1.44 MB / 0.9525 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006429/0.2304, allocations: 381.7 kB / 0.9529 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.999e-05/0.2304, allocations: 0 / 0.9529 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.529e-05/0.2305, allocations: 3.938 kB / 0.9529 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.686e-05/0.2305, allocations: 3.938 kB / 0.9529 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003852/0.2309, allocations: 119.7 kB / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.497e-05/0.231, allocations: 23.94 kB / 0.953 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.964e-05/0.231, allocations: 7.984 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.731e-05/0.2311, allocations: 11.94 kB / 0.9531 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.592e-05/0.2311, allocations: 15.91 kB / 0.9531 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.2311, allocations: 4 kB / 0.9531 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003291/0.2315, allocations: 279.6 kB / 0.9533 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.034e-05/0.2315, allocations: 4 kB / 0.9533 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.147e-05/0.2315, allocations: 11.94 kB / 0.9534 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001682/0.2317, allocations: 103.8 kB / 0.9535 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2317, allocations: 0 / 0.9535 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2317, allocations: 3.938 kB / 0.9535 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.2317, allocations: 0 / 0.9535 GB, free: 5.684 MB / 0.7325 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.0003884/0.2321, allocations: 359.4 kB / 0.9538 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.857e-05/0.2321, allocations: 12.03 kB / 0.9538 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.2322, allocations: 8.828 kB / 0.9538 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.589e-05/0.2323, allocations: 176.4 kB / 0.954 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.2323, allocations: 4.359 kB / 0.954 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.168e-06/0.2323, allocations: 384 / 0.954 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001497/0.2325, allocations: 50.23 kB / 0.954 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.2325, allocations: 192 / 0.954 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.2325, allocations: 3.938 kB / 0.9541 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.2325, allocations: 3.938 kB / 0.9541 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.2327, allocations: 35.97 kB / 0.9541 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002868/0.233, allocations: 252.9 kB / 0.9543 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.2331, allocations: 46.48 kB / 0.9544 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.352e-05/0.2332, allocations: 16.91 kB / 0.9544 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006256/0.2338, allocations: 461.5 kB / 0.9548 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.2338, allocations: 34.55 kB / 0.9549 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.2338, allocations: 0 / 0.9549 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0003105/0.2342, allocations: 89.5 kB / 0.9549 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.2342, allocations: 55.41 kB / 0.955 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.875e-05/0.2343, allocations: 101.8 kB / 0.9551 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.2343, allocations: 25.7 kB / 0.9551 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.334e-05/0.2343, allocations: 84.14 kB / 0.9552 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.2343, allocations: 15.83 kB / 0.9552 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.2344, allocations: 17.84 kB / 0.9552 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.744e-05/0.2345, allocations: 310.8 kB / 0.9555 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.025e-05/0.2346, allocations: 15.98 kB / 0.9555 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.32e-05/0.2346, allocations: 19.97 kB / 0.9556 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/0.2348, allocations: 44.77 kB / 0.9556 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2348, allocations: 4.062 kB / 0.9556 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00019/0.235, allocations: 73.53 kB / 0.9557 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.235, allocations: 4 kB / 0.9557 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.257e-06/0.235, allocations: 0 / 0.9557 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.247e-06/0.235, allocations: 0 / 0.9557 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.879e-05/0.2351, allocations: 11.98 kB / 0.9557 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.2351, allocations: 0 / 0.9557 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.151e-05/0.2351, allocations: 8.031 kB / 0.9557 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.369e-06/0.2351, allocations: 0 / 0.9557 GB, free: 3.066 MB / 0.7325 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 5.819e-05/0.2352, allocations: 113.8 kB / 0.9558 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.542e-05/0.2352, allocations: 11.89 kB / 0.9558 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000199/0.2354, allocations: 77.12 kB / 0.9559 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2355, allocations: 0 / 0.9559 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2355, allocations: 256 / 0.9559 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2355, allocations: 4.031 kB / 0.9559 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.2356, allocations: 169.5 kB / 0.9561 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/0.2356, allocations: 4 kB / 0.9561 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.858e-05/0.2357, allocations: 4 kB / 0.9561 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2357, allocations: 0 / 0.9561 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.2357, allocations: 0 / 0.9561 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2357, allocations: 0 / 0.9561 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.2357, allocations: 7.984 kB / 0.9561 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002048/0.2359, allocations: 163.5 kB / 0.9562 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.81e-05/0.236, allocations: 81.09 kB / 0.9563 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.19e-05/0.236, allocations: 0 / 0.9563 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.661e-05/0.236, allocations: 7.938 kB / 0.9563 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.977e-05/0.2361, allocations: 3.984 kB / 0.9563 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.2361, allocations: 4 kB / 0.9563 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.261e-05/0.2361, allocations: 83.28 kB / 0.9564 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2361, allocations: 4.031 kB / 0.9564 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002143/0.2364, allocations: 16 kB / 0.9564 GB, free: 2.223 MB / 0.7325 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.0001418/0.2365, allocations: 107.2 kB / 0.9565 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001744/0.2367, allocations: 35.97 kB / 0.9566 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2367, allocations: 0 / 0.9566 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.486e-05/0.2368, allocations: 23.97 kB / 0.9566 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.237, allocations: 8.062 kB / 0.9566 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002213/0.2372, allocations: 117.5 kB / 0.9567 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001972/0.2374, allocations: 0.6805 MB / 0.9574 GB, free: 1.195 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.035e-05/0.2375, allocations: 7.984 kB / 0.9574 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.038e-05/0.2375, allocations: 11.38 kB / 0.9574 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of SimCode: time 2.7e-07/0.2375, allocations: 0 / 0.9574 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of Templates: time 0.00239/0.2399, allocations: 0.7211 MB / 0.9581 GB, free: 472 kB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches