Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.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_10_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_10_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 105.3 kB / 16.27 MB, free: 6.414 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.001179/0.001179, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.331/1.331, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.49/2.49, allocations: 437 MB / 0.711 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 56.59 kB / 0.8699 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3386, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.006164/0.3448, allocations: 3.716 MB / 1.022 GB, free: 6.934 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003199/0.348, allocations: 1.328 MB / 1.023 GB, free: 5.598 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008576/0.3489, allocations: 27.81 kB / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0005432/0.3495, allocations: 126.6 kB / 1.023 GB, free: 5.445 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0009613/0.3505, allocations: 170.5 kB / 1.023 GB, free: 5.277 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001514/0.352, allocations: 0.5771 MB / 1.024 GB, free: 4.711 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001458/0.3535, allocations: 0.9604 MB / 1.025 GB, free: 3.75 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007138/0.3542, allocations: 349.6 kB / 1.025 GB, free: 3.391 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006453/0.3549, allocations: 362.4 kB / 1.025 GB, free: 3.035 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005708/0.3554, allocations: 354.1 kB / 1.026 GB, free: 2.688 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002339/0.3557, allocations: 76 kB / 1.026 GB, free: 2.613 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001928/0.3559, allocations: 80 kB / 1.026 GB, free: 2.535 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002193/0.3561, allocations: 183.2 kB / 1.026 GB, free: 2.355 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0004911/0.3566, allocations: 377.7 kB / 1.026 GB, free: 1.984 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.3577, allocations: 0.8605 MB / 1.027 GB, free: 1.121 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3577, allocations: 0 / 1.027 GB, free: 1.121 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3577, allocations: 0 / 1.027 GB, free: 1.121 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.977e-05/0.3577, allocations: 4 kB / 1.027 GB, free: 1.117 MB / 0.795 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.002697/0.3604, allocations: 1.174 MB / 1.028 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.3605, allocations: 12.92 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.3607, allocations: 91.81 kB / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.3618, allocations: 0.5986 MB / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001377/0.3619, allocations: 101 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.929e-05/0.362, allocations: 56.28 kB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.3632, allocations: 0.6003 MB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.3632, allocations: 7.938 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.775e-05/0.3633, allocations: 20 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.3633, allocations: 12 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009827/0.3643, allocations: 423.7 kB / 1.03 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003002/0.3673, allocations: 2.114 MB / 1.032 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.3686, allocations: 0.5062 MB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00047/0.3691, allocations: 212.8 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.223e-05/0.3692, allocations: 5.094 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007553/0.3699, allocations: 285.9 kB / 1.033 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=45): time 2.495e-06/0.3699, allocations: 0 / 1.033 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of matching and sorting (n=45): time 0.001544/0.3715, allocations: 0.6179 MB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.4e-05/0.3716, allocations: 88.86 kB / 1.034 GB, free: 9.938 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008219/0.3724, allocations: 0.6061 MB / 1.035 GB, free: 9.324 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.366e-05/0.3725, allocations: 37.7 kB / 1.035 GB, free: 9.281 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003041/0.3728, allocations: 356.7 kB / 1.035 GB, free: 8.93 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.3729, allocations: 157.8 kB / 1.035 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.3731, allocations: 94.23 kB / 1.035 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3733, allocations: 329.9 kB / 1.035 GB, free: 8.348 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004932/0.3738, allocations: 183 kB / 1.036 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005671/0.3743, allocations: 284.2 kB / 1.036 GB, free: 7.855 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009699/0.3753, allocations: 470 kB / 1.036 GB, free: 7.363 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.361e-06/0.3753, allocations: 3.938 kB / 1.036 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001313/0.3767, allocations: 0.6021 MB / 1.037 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.3767, allocations: 33.7 kB / 1.037 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3767, allocations: 8 kB / 1.037 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.3768, allocations: 4 kB / 1.037 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004998/0.3773, allocations: 103.9 kB / 1.037 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.3773, allocations: 16.19 kB / 1.037 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004608/0.3778, allocations: 63.41 kB / 1.037 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.3778, allocations: 20 kB / 1.037 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005974/0.3784, allocations: 305.2 kB / 1.037 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004801/0.3789, allocations: 264.3 kB / 1.038 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000853/0.3798, allocations: 461.8 kB / 1.038 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.777e-06/0.3798, allocations: 4 kB / 1.038 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001183/0.381, allocations: 0.5749 MB / 1.039 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.381, allocations: 37.7 kB / 1.039 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.381, allocations: 0 / 1.039 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.381, allocations: 4 kB / 1.039 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004391/0.3815, allocations: 107.8 kB / 1.039 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.3815, allocations: 4 kB / 1.039 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004191/0.3819, allocations: 51.66 kB / 1.039 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.562e-05/0.382, allocations: 20.09 kB / 1.039 GB, free: 4.586 MB / 0.8106 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002236/0.3822, allocations: 216.1 kB / 1.039 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.3824, allocations: 79 kB / 1.039 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001679/0.3825, allocations: 83.2 kB / 1.039 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.3825, allocations: 4 kB / 1.039 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3826, allocations: 0 / 1.039 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3826, allocations: 3.938 kB / 1.039 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007852/0.3834, allocations: 0.6218 MB / 1.04 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.3834, allocations: 0 / 1.04 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004746/0.3839, allocations: 91.83 kB / 1.04 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.3839, allocations: 0 / 1.04 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.3839, allocations: 15.98 kB / 1.04 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3839, allocations: 0 / 1.04 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3839, allocations: 0 / 1.04 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.3855, allocations: 0.7286 MB / 1.041 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002544/0.3858, allocations: 192 kB / 1.041 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.101e-05/0.3859, allocations: 12 kB / 1.041 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000426/0.3863, allocations: 31.97 kB / 1.041 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.572e-05/0.3864, allocations: 35.95 kB / 1.041 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.493e-05/0.3865, allocations: 12.11 kB / 1.041 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0005477/0.387, allocations: 435 kB / 1.041 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.387, allocations: 0 / 1.041 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006777/0.3877, allocations: 211.4 kB / 1.042 GB, free: 1.75 MB / 0.8106 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 (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.0001685/0.3879, allocations: 119.1 kB / 1.042 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001831/0.3897, allocations: 0.801 MB / 1.043 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.3897, allocations: 0 / 1.043 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005865/0.3903, allocations: 223.7 kB / 1.043 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.3915, allocations: 204.7 kB / 1.043 GB, free: 396 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002336/0.3938, allocations: 1.229 MB / 1.044 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005134/0.3943, allocations: 0.9141 MB / 1.045 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001844/0.3945, allocations: 59.42 kB / 1.045 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of SimCode: time 4.1e-07/0.3945, allocations: 0 / 1.045 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of Templates: time 0.01456/0.4091, allocations: 8.631 MB / 1.054 GB, free: 5.531 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches