Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.35/2.35, allocations: 387.4 MB / 394.9 MB, free: 13.31 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001033, allocations: 184.6 kB / 487.4 MB, free: 4.941 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.603/1.603, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008855/0.0008853, allocations: 107.8 kB / 0.9219 GB, free: 2.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.342e-05/1.374e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2618, allocations: 142.4 MB / 1.206 GB, free: 44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8856/1.147, allocations: 156.5 MB / 1.359 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/1.148, allocations: 78.94 kB / 1.359 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04285/1.191, allocations: 16.79 MB / 1.375 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.653e-06/1.191, allocations: 0 / 1.375 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.0001113/1.191, allocations: 23.47 kB / 1.375 GB, free: 32.5 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001884/1.193, allocations: 0.9386 MB / 1.376 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/1.193, allocations: 8.219 kB / 1.376 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003398/1.193, allocations: 93.5 kB / 1.376 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/1.194, allocations: 0.5905 MB / 1.377 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/1.194, allocations: 83.69 kB / 1.377 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/1.194, allocations: 30.84 kB / 1.377 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006673/1.195, allocations: 338.5 kB / 1.377 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008064/1.196, allocations: 0.5088 MB / 1.378 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/1.196, allocations: 7.766 kB / 1.378 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.308e-05/1.196, allocations: 0 / 1.378 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/1.196, allocations: 11.72 kB / 1.378 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003108/1.199, allocations: 2.114 MB / 1.38 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008988/1.2, allocations: 424.7 kB / 1.38 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/1.2, allocations: 162.1 kB / 1.38 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.087e-05/1.2, allocations: 7.859 kB / 1.38 GB, free: 29.63 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004409/1.201, allocations: 230.2 kB / 1.381 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=45): time 2.645e-06/1.201, allocations: 3.938 kB / 1.381 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45): time 0.0007495/1.202, allocations: 385.6 kB / 1.381 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.091e-05/1.202, allocations: 186.7 kB / 1.381 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006157/1.202, allocations: 472 kB / 1.382 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.764e-05/1.202, allocations: 36.98 kB / 1.382 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002679/1.203, allocations: 362.3 kB / 1.382 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/1.203, allocations: 154 kB / 1.382 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/1.203, allocations: 0 / 1.382 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002207/1.203, allocations: 383.7 kB / 1.383 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/1.203, allocations: 138.5 kB / 1.383 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002934/1.204, allocations: 271.2 kB / 1.383 GB, free: 28.24 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/1.204, allocations: 158.8 kB / 1.383 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.523e-06/1.204, allocations: 0 / 1.383 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007811/1.205, allocations: 476.7 kB / 1.384 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005064/1.205, allocations: 1.002 MB / 1.385 GB, free: 27.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/1.205, allocations: 7.969 kB / 1.385 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.032e-05/1.205, allocations: 7.844 kB / 1.385 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005087/1.206, allocations: 119.2 kB / 1.385 GB, free: 27.03 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/1.206, allocations: 11.78 kB / 1.385 GB, free: 27.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005059/1.206, allocations: 74.23 kB / 1.385 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/1.206, allocations: 15.19 kB / 1.385 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/1.206, allocations: 3.969 kB / 1.385 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006049/1.207, allocations: 381.5 kB / 1.385 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/1.207, allocations: 3.844 kB / 1.385 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.305e-06/1.207, allocations: 3.875 kB / 1.385 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000459/1.207, allocations: 124 kB / 1.385 GB, free: 26.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.567e-06/1.207, allocations: 7.906 kB / 1.385 GB, free: 26.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004665/1.208, allocations: 50.44 kB / 1.385 GB, free: 26.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/1.208, allocations: 22.8 kB / 1.385 GB, free: 26.88 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001968/1.208, allocations: 121.5 kB / 1.385 GB, free: 26.76 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/1.208, allocations: 74.25 kB / 1.386 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001751/1.208, allocations: 72.14 kB / 1.386 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/1.208, allocations: 3.906 kB / 1.386 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/1.208, allocations: 3.953 kB / 1.386 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/1.209, allocations: 3.984 kB / 1.386 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006444/1.209, allocations: 0.5701 MB / 1.386 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.175e-06/1.209, allocations: 3.984 kB / 1.386 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004665/1.21, allocations: 95.95 kB / 1.386 GB, free: 26.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/1.21, allocations: 0 / 1.386 GB, free: 26.37 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.893e-05/1.21, allocations: 7.797 kB / 1.386 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/1.21, allocations: 0 / 1.386 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/1.21, allocations: 3.984 kB / 1.386 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008532/1.211, allocations: 0.627 MB / 1.387 GB, free: 26.21 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002354/1.211, allocations: 199.8 kB / 1.387 GB, free: 26.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/1.211, allocations: 4 kB / 1.387 GB, free: 26.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/1.211, allocations: 54.66 kB / 1.387 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/1.212, allocations: 42.89 kB / 1.387 GB, free: 26.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.964e-05/1.212, allocations: 18.98 kB / 1.387 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004689/1.212, allocations: 362.1 kB / 1.388 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.212, allocations: 0 / 1.388 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006782/1.213, allocations: 216.2 kB / 1.388 GB, free: 25.84 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001929/1.213, allocations: 118.3 kB / 1.388 GB, free: 25.74 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001075/1.214, allocations: 0.7056 MB / 1.389 GB, free: 25.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/1.214, allocations: 0 / 1.389 GB, free: 25.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000306/1.214, allocations: 181.2 kB / 1.389 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/1.215, allocations: 166.2 kB / 1.389 GB, free: 25.51 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/1.218, allocations: 0.8489 MB / 1.39 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007037/1.218, allocations: 0.9368 MB / 1.391 GB, free: 24.31 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0007143/1.219, allocations: 121.2 kB / 1.391 GB, free: 24.25 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/1.219, allocations: 46.33 kB / 1.391 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of SimCode: time 1.072e-06/1.219, allocations: 0 / 1.391 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of Templates: time 0.01515/1.235, allocations: 8.14 MB / 1.399 GB, free: 20.34 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPID.csv","../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches