Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.626/2.626, allocations: 390.3 MB / 402.8 MB, free: 6.676 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.001108/0.001108, allocations: 176.8 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 221.3 MB / 0.7915 GB, free: 5.441 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.001293/0.001293, allocations: 91.75 kB / 0.9317 GB, free: 5.754 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.26e-05/3.27e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3362, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.107/1.444, allocations: 158 MB / 1.373 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/1.444, allocations: 81.39 kB / 1.373 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.04705/1.491, allocations: 16.91 MB / 1.39 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.883e-06/1.491, allocations: 0 / 1.39 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 0.0001153/1.491, allocations: 19.94 kB / 1.39 GB, free: 13.86 MB / 0.8542 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.002434/1.494, allocations: 0.9404 MB / 1.391 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 6.967e-05/1.494, allocations: 8.031 kB / 1.391 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005313/1.494, allocations: 94.88 kB / 1.391 GB, free: 12.81 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/1.496, allocations: 0.5811 MB / 1.391 GB, free: 12.28 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/1.496, allocations: 98.22 kB / 1.391 GB, free: 12.18 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/1.496, allocations: 54.19 kB / 1.391 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/1.498, allocations: 0.5849 MB / 1.392 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/1.498, allocations: 0 / 1.392 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-05/1.498, allocations: 18.56 kB / 1.392 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.351e-05/1.498, allocations: 16 kB / 1.392 GB, free: 11.67 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008279/1.499, allocations: 375.7 kB / 1.392 GB, free: 11.44 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004008/1.503, allocations: 2.217 MB / 1.394 GB, free: 9.531 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/1.504, allocations: 464.4 kB / 1.395 GB, free: 9.219 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003409/1.504, allocations: 174.9 kB / 1.395 GB, free: 9.117 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 5.785e-05/1.504, allocations: 11.95 kB / 1.395 GB, free: 9.105 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000531/1.505, allocations: 251.9 kB / 1.395 GB, free: 8.918 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=45): time 2.385e-06/1.505, allocations: 1.094 kB / 1.395 GB, free: 8.918 MB / 0.8542 GB Notification: Performance of matching and sorting (n=45): time 0.0008759/1.506, allocations: 412.1 kB / 1.396 GB, free: 8.613 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/1.506, allocations: 191.2 kB / 1.396 GB, free: 8.387 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007894/1.507, allocations: 0.5285 MB / 1.396 GB, free: 7.969 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.025e-05/1.507, allocations: 38.45 kB / 1.396 GB, free: 7.934 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/1.507, allocations: 362.5 kB / 1.397 GB, free: 7.715 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/1.507, allocations: 157 kB / 1.397 GB, free: 7.582 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.242e-05/1.507, allocations: 10.38 kB / 1.397 GB, free: 7.578 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.000153/1.507, allocations: 328.6 kB / 1.397 GB, free: 7.262 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003204/1.508, allocations: 144.9 kB / 1.397 GB, free: 7.176 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003732/1.508, allocations: 290.1 kB / 1.398 GB, free: 6.922 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003393/1.508, allocations: 198.2 kB / 1.398 GB, free: 6.781 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/1.508, allocations: 0 / 1.398 GB, free: 6.781 MB / 0.8542 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000921/1.509, allocations: 0.546 MB / 1.398 GB, free: 6.355 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004637/1.51, allocations: 0.9906 MB / 1.399 GB, free: 5.305 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/1.51, allocations: 4 kB / 1.399 GB, free: 5.301 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.679e-05/1.51, allocations: 7.984 kB / 1.399 GB, free: 5.293 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00053/1.51, allocations: 123.2 kB / 1.4 GB, free: 5.176 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/1.51, allocations: 4 kB / 1.4 GB, free: 5.172 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005575/1.511, allocations: 84.55 kB / 1.4 GB, free: 5.098 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-05/1.511, allocations: 23.89 kB / 1.4 GB, free: 5.078 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/1.511, allocations: 8 kB / 1.4 GB, free: 5.07 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007565/1.512, allocations: 457.3 kB / 1.4 GB, free: 4.762 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-06/1.512, allocations: 4 kB / 1.4 GB, free: 4.758 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.026e-06/1.512, allocations: 4 kB / 1.4 GB, free: 4.754 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004743/1.512, allocations: 122.1 kB / 1.4 GB, free: 4.641 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/1.512, allocations: 11.98 kB / 1.4 GB, free: 4.629 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005073/1.513, allocations: 66.69 kB / 1.4 GB, free: 4.57 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/1.513, allocations: 19.12 kB / 1.4 GB, free: 4.555 MB / 0.8542 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.0001956/1.513, allocations: 140.1 kB / 1.4 GB, free: 4.43 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/1.513, allocations: 79.02 kB / 1.401 GB, free: 4.352 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002067/1.513, allocations: 79.61 kB / 1.401 GB, free: 4.301 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/1.513, allocations: 4 kB / 1.401 GB, free: 4.297 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/1.513, allocations: 0 / 1.401 GB, free: 4.297 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/1.514, allocations: 0 / 1.401 GB, free: 4.297 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008093/1.514, allocations: 0.6552 MB / 1.401 GB, free: 3.758 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/1.514, allocations: 0 / 1.401 GB, free: 3.758 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000492/1.515, allocations: 95.27 kB / 1.401 GB, free: 3.668 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.909e-06/1.515, allocations: 4 kB / 1.401 GB, free: 3.664 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/1.515, allocations: 15.75 kB / 1.401 GB, free: 3.652 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/1.515, allocations: 4 kB / 1.401 GB, free: 3.648 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.515, allocations: 0 / 1.401 GB, free: 3.648 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/1.516, allocations: 0.6625 MB / 1.402 GB, free: 3.18 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002875/1.516, allocations: 205.3 kB / 1.402 GB, free: 2.992 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.114e-05/1.516, allocations: 8.125 kB / 1.402 GB, free: 2.988 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005205/1.517, allocations: 70.59 kB / 1.402 GB, free: 2.926 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/1.517, allocations: 34.38 kB / 1.402 GB, free: 2.898 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.154e-05/1.517, allocations: 15.88 kB / 1.402 GB, free: 2.887 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0005609/1.518, allocations: 426 kB / 1.403 GB, free: 2.574 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.7e-07/1.518, allocations: 0 / 1.403 GB, free: 2.574 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0007514/1.518, allocations: 239.3 kB / 1.403 GB, free: 2.363 MB / 0.8542 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.0002269/1.519, allocations: 110.4 kB / 1.403 GB, free: 2.25 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001272/1.52, allocations: 0.7482 MB / 1.404 GB, free: 1.684 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.52, allocations: 3.938 kB / 1.404 GB, free: 1.68 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003118/1.52, allocations: 185 kB / 1.404 GB, free: 1.559 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000911/1.521, allocations: 176.1 kB / 1.404 GB, free: 1.43 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/1.523, allocations: 0.8866 MB / 1.405 GB, free: 0.6289 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005957/1.524, allocations: 0.9313 MB / 1.406 GB, free: 15.67 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0007096/1.525, allocations: 143.5 kB / 1.406 GB, free: 15.53 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/1.525, allocations: 35.44 kB / 1.406 GB, free: 15.49 MB / 0.8698 GB Notification: Performance of SimCode: time 8.62e-07/1.525, allocations: 0 / 1.406 GB, free: 15.49 MB / 0.8698 GB Notification: Performance of Templates: time 0.01937/1.544, allocations: 9.004 MB / 1.415 GB, free: 6.586 MB / 0.8698 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches