Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.383/1.383, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00122/0.00122, allocations: 180.6 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.053/2.053, allocations: 205.4 MB / 0.5775 GB, free: 20.26 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 90.34 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003652, allocations: 6.281 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2643, allocations: 106.3 MB / 0.9001 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2044/0.4687, allocations: 139.9 MB / 1.037 GB, free: 3.922 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002892/0.4691, allocations: 79.95 kB / 1.037 GB, free: 3.844 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04857/0.5177, allocations: 16.97 MB / 1.053 GB, free: 2.828 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.164e-06/0.5177, allocations: 0 / 1.053 GB, free: 2.828 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001152/0.5178, allocations: 16 kB / 1.053 GB, free: 2.812 MB / 0.698 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.002805/0.5206, allocations: 1.063 MB / 1.054 GB, free: 1.691 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.5207, allocations: 8.031 kB / 1.054 GB, free: 1.684 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000433/0.5211, allocations: 102.8 kB / 1.054 GB, free: 1.582 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/0.5227, allocations: 0.594 MB / 1.055 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.5228, allocations: 104.4 kB / 1.055 GB, free: 0.8281 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.523, allocations: 55.94 kB / 1.055 GB, free: 0.7734 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.5244, allocations: 0.6534 MB / 1.056 GB, free: 72 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.5245, allocations: 0 / 1.056 GB, free: 72 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.313e-05/0.5245, allocations: 20 kB / 1.056 GB, free: 52 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.5246, allocations: 15.95 kB / 1.056 GB, free: 36 kB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5189/1.043, allocations: 499.8 kB / 1.056 GB, free: 145.4 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002956/1.046, allocations: 2.213 MB / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/1.048, allocations: 0.601 MB / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.616e-05/1.048, allocations: 9.328 kB / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006791/1.048, allocations: 326.8 kB / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=45): time 2.975e-06/1.049, allocations: 0 / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=45): time 0.001434/1.05, allocations: 0.7073 MB / 1.06 GB, free: 144.3 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.443e-05/1.05, allocations: 190.4 kB / 1.06 GB, free: 144.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006036/1.051, allocations: 0.5441 MB / 1.061 GB, free: 143.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/1.051, allocations: 38.42 kB / 1.061 GB, free: 143.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002372/1.051, allocations: 366.3 kB / 1.061 GB, free: 143.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/1.051, allocations: 154.1 kB / 1.061 GB, free: 143.7 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.444e-05/1.051, allocations: 12.66 kB / 1.061 GB, free: 143.7 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.332e-05/1.051, allocations: 329.5 kB / 1.062 GB, free: 143.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004575/1.052, allocations: 211.5 kB / 1.062 GB, free: 143.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005297/1.052, allocations: 342.6 kB / 1.062 GB, free: 143.3 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004904/1.053, allocations: 263.1 kB / 1.062 GB, free: 143.2 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/1.053, allocations: 0 / 1.062 GB, free: 143.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001239/1.054, allocations: 0.6605 MB / 1.063 GB, free: 143.1 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002417/1.054, allocations: 0.9938 MB / 1.064 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/1.054, allocations: 0 / 1.064 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/1.054, allocations: 10.27 kB / 1.064 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000503/1.055, allocations: 120.4 kB / 1.064 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/1.055, allocations: 7.016 kB / 1.064 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004839/1.055, allocations: 88.08 kB / 1.064 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/1.055, allocations: 19.34 kB / 1.064 GB, free: 142.1 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/1.055, allocations: 3.641 kB / 1.064 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001003/1.056, allocations: 0.5503 MB / 1.065 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-06/1.056, allocations: 0 / 1.065 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.085e-06/1.056, allocations: 10.64 kB / 1.065 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004496/1.057, allocations: 113.7 kB / 1.065 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/1.057, allocations: 8.547 kB / 1.065 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/1.057, allocations: 76.64 kB / 1.065 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.915e-05/1.057, allocations: 20.89 kB / 1.065 GB, free: 142 MB / 0.698 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 () * Number of clocked 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.0003706/1.058, allocations: 279.4 kB / 1.065 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/1.058, allocations: 74.25 kB / 1.065 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/1.058, allocations: 80.19 kB / 1.065 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/1.058, allocations: 11.62 kB / 1.065 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.842e-05/1.058, allocations: 2.969 kB / 1.065 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/1.058, allocations: 2.109 kB / 1.065 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009836/1.059, allocations: 0.6515 MB / 1.066 GB, free: 141.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/1.059, allocations: 0 / 1.066 GB, free: 141.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005004/1.06, allocations: 94.77 kB / 1.066 GB, free: 141.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.425e-06/1.06, allocations: 6.844 kB / 1.066 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/1.06, allocations: 11.8 kB / 1.066 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/1.06, allocations: 3.047 kB / 1.066 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.06, allocations: 4.609 kB / 1.066 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002088/1.062, allocations: 0.8307 MB / 1.067 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003467/1.062, allocations: 205 kB / 1.067 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.554e-05/1.062, allocations: 9.672 kB / 1.067 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005489/1.063, allocations: 65.97 kB / 1.067 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/1.063, allocations: 39.05 kB / 1.067 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.055e-05/1.063, allocations: 17.39 kB / 1.067 GB, free: 141.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000735/1.064, allocations: 433.3 kB / 1.068 GB, free: 141.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/1.064, allocations: 0 / 1.068 GB, free: 141.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009843/1.065, allocations: 237.5 kB / 1.068 GB, free: 141.2 MB / 0.698 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) * Number of clocked states: 0 () * 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.0002287/1.065, allocations: 117.2 kB / 1.068 GB, free: 141.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001984/1.067, allocations: 0.8851 MB / 1.069 GB, free: 140.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/1.067, allocations: 0.625 kB / 1.069 GB, free: 140.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005883/1.068, allocations: 258.3 kB / 1.069 GB, free: 140.9 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008507/1.068, allocations: 174.8 kB / 1.069 GB, free: 140.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/1.071, allocations: 1.396 MB / 1.071 GB, free: 140.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/1.071, allocations: 0.9312 MB / 1.072 GB, free: 139.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000495/1.072, allocations: 94.84 kB / 1.072 GB, free: 139.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/1.072, allocations: 48.58 kB / 1.072 GB, free: 139.4 MB / 0.698 GB Notification: Performance of SimCode: time 5.41e-07/1.072, allocations: 4.75 kB / 1.072 GB, free: 139.4 MB / 0.698 GB Notification: Performance of Templates: time 0.01875/1.091, allocations: 7.741 MB / 1.079 GB, free: 139 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_LimPID.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches