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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001592/0.001592, allocations: 104 kB / 16.41 MB, free: 6.504 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.001852/0.001852, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.33/2.33, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001348, allocations: 67.91 kB / 0.9515 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.105/1.107, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002775/1.11, allocations: 1.429 MB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007974/1.11, allocations: 391.1 kB / 1.09 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.674e-05/1.11, allocations: 5 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.952e-05/1.11, allocations: 0.7031 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.436e-05/1.11, allocations: 4.906 kB / 1.09 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004885/1.111, allocations: 108.5 kB / 1.091 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.916e-05/1.111, allocations: 29.98 kB / 1.091 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.914e-05/1.111, allocations: 4.781 kB / 1.091 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.2e-05/1.111, allocations: 9.891 kB / 1.091 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.199e-05/1.111, allocations: 17.3 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/1.111, allocations: 2.25 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005101/1.112, allocations: 279.2 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.505e-05/1.112, allocations: 5.953 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.609e-05/1.112, allocations: 11.77 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002441/1.112, allocations: 102 kB / 1.091 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/1.112, allocations: 0.75 kB / 1.091 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.205e-06/1.112, allocations: 0.7812 kB / 1.091 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.795e-06/1.112, allocations: 0 / 1.091 GB, free: 4.055 MB / 0.8575 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.0004521/1.113, allocations: 376.5 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/1.113, allocations: 10.38 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.182e-05/1.113, allocations: 3.281 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.843e-05/1.113, allocations: 166.7 kB / 1.091 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/1.113, allocations: 1.406 kB / 1.091 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/1.113, allocations: 5.531 kB / 1.091 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001806/1.113, allocations: 49.36 kB / 1.092 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/1.113, allocations: 1.062 kB / 1.092 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/1.113, allocations: 4.453 kB / 1.092 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/1.113, allocations: 12.98 kB / 1.092 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/1.113, allocations: 33.16 kB / 1.092 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003216/1.114, allocations: 252.6 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/1.114, allocations: 41.86 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.356e-05/1.114, allocations: 27.34 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006497/1.114, allocations: 455.2 kB / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/1.115, allocations: 40.05 kB / 1.092 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/1.115, allocations: 0 / 1.092 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003823/1.115, allocations: 81.84 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/1.115, allocations: 52.5 kB / 1.092 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.469e-05/1.115, allocations: 103.7 kB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/1.115, allocations: 29.7 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.297e-05/1.115, allocations: 87.83 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.745e-05/1.115, allocations: 7.078 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.076e-05/1.115, allocations: 20.38 kB / 1.093 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.043e-05/1.115, allocations: 312.8 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.6e-05/1.115, allocations: 19.31 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.419e-05/1.115, allocations: 13.86 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/1.116, allocations: 41.59 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/1.116, allocations: 0.7812 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002129/1.116, allocations: 76.34 kB / 1.093 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/1.116, allocations: 5.594 kB / 1.093 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/1.116, allocations: 3.938 kB / 1.093 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/1.116, allocations: 1.297 kB / 1.093 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.931e-05/1.116, allocations: 13.11 kB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/1.116, allocations: 0.7031 kB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.703e-05/1.116, allocations: 5.516 kB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-06/1.116, allocations: 1.5 kB / 1.093 GB, free: 1.832 MB / 0.8575 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.413e-05/1.116, allocations: 112.4 kB / 1.093 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/1.116, allocations: 5.688 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002423/1.116, allocations: 81.39 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/1.116, allocations: 0.6562 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/1.116, allocations: 0.7188 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/1.116, allocations: 0.6562 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/1.117, allocations: 165.3 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/1.117, allocations: 0.8438 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.834e-05/1.117, allocations: 9.094 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/1.117, allocations: 0.6875 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/1.117, allocations: 0.7031 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/1.117, allocations: 0.6562 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/1.117, allocations: 5.062 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/1.117, allocations: 159.7 kB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.599e-05/1.117, allocations: 86.88 kB / 1.094 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/1.117, allocations: 5.156 kB / 1.094 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.39e-05/1.117, allocations: 6.516 kB / 1.094 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/1.117, allocations: 10.22 kB / 1.094 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/1.117, allocations: 0.6875 kB / 1.094 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.961e-05/1.117, allocations: 86.12 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/1.117, allocations: 0 / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002293/1.117, allocations: 17.11 kB / 1.094 GB, free: 1.121 MB / 0.8575 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.0001926/1.118, allocations: 110.4 kB / 1.094 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002198/1.118, allocations: 40.11 kB / 1.094 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.118, allocations: 0 / 1.094 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.97e-05/1.118, allocations: 21.5 kB / 1.094 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/1.118, allocations: 10.86 kB / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002662/1.118, allocations: 136.7 kB / 1.094 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001876/1.119, allocations: 0.6777 MB / 1.095 GB, free: 16.17 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.015e-05/1.119, allocations: 12.5 kB / 1.095 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/1.119, allocations: 5.156 kB / 1.095 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of Templates: time 0.002608/1.121, allocations: 0.7027 MB / 1.096 GB, free: 16.11 MB / 0.8731 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 -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