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.338/2.338, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.001541/0.001541, allocations: 173 kB / 492.3 MB, free: 0.6328 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.551/1.551, allocations: 221.3 MB / 0.7871 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 103 kB / 0.9267 GB, free: 13.94 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.029e-05/3.033e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2753, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9469/1.222, allocations: 157.2 MB / 1.366 GB, free: 19.06 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/1.223, allocations: 79.27 kB / 1.366 GB, free: 19.06 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04135/1.264, allocations: 16.91 MB / 1.382 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.724e-06/1.264, allocations: 0 / 1.382 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.522e-05/1.264, allocations: 19.41 kB / 1.382 GB, free: 31.96 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.00151/1.266, allocations: 0.936 MB / 1.383 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/1.266, allocations: 7.812 kB / 1.383 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/1.266, allocations: 101.2 kB / 1.383 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008372/1.267, allocations: 0.5834 MB / 1.384 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.729e-05/1.267, allocations: 99.33 kB / 1.384 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.109e-05/1.267, allocations: 52.91 kB / 1.384 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000767/1.268, allocations: 0.5755 MB / 1.385 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/1.268, allocations: 3.844 kB / 1.385 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.217e-05/1.268, allocations: 25.27 kB / 1.385 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/1.268, allocations: 11.66 kB / 1.385 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005149/1.268, allocations: 377.9 kB / 1.385 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002346/1.271, allocations: 2.216 MB / 1.387 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007205/1.271, allocations: 452.9 kB / 1.388 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002285/1.272, allocations: 179.7 kB / 1.388 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.765e-05/1.272, allocations: 3.844 kB / 1.388 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003893/1.272, allocations: 246.7 kB / 1.388 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=45): time 2.394e-06/1.272, allocations: 7.938 kB / 1.388 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45): time 0.000691/1.273, allocations: 412.9 kB / 1.389 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/1.273, allocations: 187.4 kB / 1.389 GB, free: 28.61 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005213/1.273, allocations: 0.5313 MB / 1.389 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.554e-05/1.273, allocations: 40.3 kB / 1.389 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/1.274, allocations: 362.3 kB / 1.39 GB, free: 28.24 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.498e-05/1.274, allocations: 156.2 kB / 1.39 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-05/1.274, allocations: 7.25 kB / 1.39 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.717e-05/1.274, allocations: 339.1 kB / 1.39 GB, free: 27.81 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/1.274, allocations: 144.5 kB / 1.39 GB, free: 27.81 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002885/1.274, allocations: 276 kB / 1.391 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/1.275, allocations: 208.7 kB / 1.391 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/1.275, allocations: 0 / 1.391 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007026/1.275, allocations: 0.5406 MB / 1.391 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003137/1.276, allocations: 0.9845 MB / 1.392 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/1.276, allocations: 7.812 kB / 1.392 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/1.276, allocations: 7.781 kB / 1.392 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005096/1.276, allocations: 123.1 kB / 1.392 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/1.276, allocations: 7.688 kB / 1.392 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005262/1.277, allocations: 88.2 kB / 1.392 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.035e-05/1.277, allocations: 18.88 kB / 1.392 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.737e-06/1.277, allocations: 3.844 kB / 1.392 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006145/1.277, allocations: 469.8 kB / 1.393 GB, free: 26.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/1.277, allocations: 3.812 kB / 1.393 GB, free: 26.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.781e-06/1.277, allocations: 3.844 kB / 1.393 GB, free: 26.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004234/1.278, allocations: 114.3 kB / 1.393 GB, free: 26.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/1.278, allocations: 7.312 kB / 1.393 GB, free: 26.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004132/1.278, allocations: 77.61 kB / 1.393 GB, free: 26.2 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/1.278, allocations: 15.25 kB / 1.393 GB, free: 26.2 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.000151/1.279, allocations: 137.1 kB / 1.393 GB, free: 26.08 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.907e-05/1.279, allocations: 73.88 kB / 1.393 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001909/1.279, allocations: 83.84 kB / 1.393 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/1.279, allocations: 3.844 kB / 1.393 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/1.279, allocations: 8.062 kB / 1.393 GB, free: 26 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/1.279, allocations: 3.844 kB / 1.393 GB, free: 26 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005781/1.279, allocations: 0.6515 MB / 1.394 GB, free: 25.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/1.279, allocations: 3.984 kB / 1.394 GB, free: 25.64 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004426/1.28, allocations: 92.05 kB / 1.394 GB, free: 25.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/1.28, allocations: 3.844 kB / 1.394 GB, free: 25.63 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.274e-05/1.28, allocations: 15.33 kB / 1.394 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/1.28, allocations: 3.953 kB / 1.394 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.28, allocations: 0 / 1.394 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008517/1.281, allocations: 0.6609 MB / 1.395 GB, free: 25.47 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002082/1.281, allocations: 204.8 kB / 1.395 GB, free: 25.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.476e-05/1.281, allocations: 10.47 kB / 1.395 GB, free: 25.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004757/1.282, allocations: 64.86 kB / 1.395 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.747e-05/1.282, allocations: 40.77 kB / 1.395 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/1.282, allocations: 19.08 kB / 1.395 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003992/1.282, allocations: 422.1 kB / 1.396 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.282, allocations: 4 kB / 1.396 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005632/1.283, allocations: 242.5 kB / 1.396 GB, free: 25.1 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.0001509/1.283, allocations: 113.9 kB / 1.396 GB, free: 25 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008716/1.284, allocations: 0.7416 MB / 1.397 GB, free: 24.82 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/1.284, allocations: 8.031 kB / 1.397 GB, free: 24.82 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002454/1.284, allocations: 184.1 kB / 1.397 GB, free: 24.81 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000776/1.285, allocations: 169.7 kB / 1.397 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/1.286, allocations: 0.8961 MB / 1.398 GB, free: 24.36 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/1.287, allocations: 0.9336 MB / 1.399 GB, free: 23.54 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0005536/1.287, allocations: 136.6 kB / 1.399 GB, free: 23.47 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/1.287, allocations: 34.12 kB / 1.399 GB, free: 23.46 MB / 0.8386 GB Notification: Performance of SimCode: time 1.052e-06/1.287, allocations: 0 / 1.399 GB, free: 23.46 MB / 0.8386 GB Notification: Performance of Templates: time 0.01384/1.301, allocations: 9.016 MB / 1.408 GB, free: 15.91 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