Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.OBC.CDL.Reals.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 102.6 kB / 16.27 MB, free: 5.98 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.001228/0.001228, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.401/1.401, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.608/2.608, allocations: 469.4 MB / 0.7427 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 69.23 kB / 0.9088 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3341, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003809/0.338, allocations: 2.085 MB / 1.066 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002681/0.3407, allocations: 1.614 MB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004639/0.3412, allocations: 11.94 kB / 1.068 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0003582/0.3416, allocations: 83.06 kB / 1.068 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003726/0.342, allocations: 75.25 kB / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.343, allocations: 322.4 kB / 1.068 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0008933/0.3439, allocations: 0.6881 MB / 1.069 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005514/0.3445, allocations: 321.3 kB / 1.069 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003797/0.3448, allocations: 263 kB / 1.07 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004662/0.3453, allocations: 278.6 kB / 1.07 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001806/0.3455, allocations: 80 kB / 1.07 GB, free: 9.203 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.3457, allocations: 87.98 kB / 1.07 GB, free: 9.117 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.3459, allocations: 139.5 kB / 1.07 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003289/0.3462, allocations: 306.4 kB / 1.07 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008797/0.3471, allocations: 0.7946 MB / 1.071 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3471, allocations: 0 / 1.071 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3471, allocations: 0 / 1.071 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.277e-05/0.3471, allocations: 0 / 1.071 GB, free: 7.883 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001851/0.349, allocations: 0.8994 MB / 1.072 GB, free: 6.926 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.349, allocations: 8.031 kB / 1.072 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.3492, allocations: 72.17 kB / 1.072 GB, free: 6.848 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006295/0.3499, allocations: 404.5 kB / 1.073 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.038e-05/0.3499, allocations: 45.38 kB / 1.073 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-05/0.35, allocations: 64.25 kB / 1.073 GB, free: 6.305 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008662/0.3509, allocations: 0.4917 MB / 1.073 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.3509, allocations: 192 / 1.073 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/0.351, allocations: 23.94 kB / 1.073 GB, free: 5.781 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.351, allocations: 12 kB / 1.073 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007755/0.3518, allocations: 355.8 kB / 1.073 GB, free: 5.418 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002536/0.3543, allocations: 1.562 MB / 1.075 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000982/0.3553, allocations: 0.8629 MB / 1.076 GB, free: 2.816 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003779/0.3557, allocations: 230.4 kB / 1.076 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.3557, allocations: 8 kB / 1.076 GB, free: 2.582 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004493/0.3562, allocations: 245.6 kB / 1.076 GB, free: 2.332 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=47): time 2.134e-06/0.3562, allocations: 0 / 1.076 GB, free: 2.332 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47): time 0.001064/0.3573, allocations: 0.5258 MB / 1.077 GB, free: 1.801 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.513e-05/0.3574, allocations: 107.2 kB / 1.077 GB, free: 1.672 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004398/0.3578, allocations: 389.6 kB / 1.077 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.625e-05/0.3579, allocations: 37.7 kB / 1.077 GB, free: 1.238 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.3581, allocations: 253 kB / 1.078 GB, free: 0.9883 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.3582, allocations: 157.7 kB / 1.078 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.3584, allocations: 98.23 kB / 1.078 GB, free: 0.7305 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3586, allocations: 354.8 kB / 1.078 GB, free: 384 kB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004125/0.359, allocations: 183 kB / 1.078 GB, free: 200 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5582/0.9172, allocations: 285.7 kB / 1.079 GB, free: 22.2 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000928/0.9181, allocations: 437 kB / 1.079 GB, free: 22.11 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.9181, allocations: 2.125 kB / 1.079 GB, free: 22.11 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001219/0.9194, allocations: 0.5653 MB / 1.08 GB, free: 22.04 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.972e-05/0.9194, allocations: 43.3 kB / 1.08 GB, free: 22 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.9194, allocations: 2.062 kB / 1.08 GB, free: 22 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.9195, allocations: 4.688 kB / 1.08 GB, free: 22 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004255/0.9199, allocations: 96.02 kB / 1.08 GB, free: 22 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.9199, allocations: 4.203 kB / 1.08 GB, free: 22 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004295/0.9203, allocations: 87.83 kB / 1.08 GB, free: 22 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.918e-05/0.9204, allocations: 27.52 kB / 1.08 GB, free: 22 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004663/0.9209, allocations: 287.2 kB / 1.08 GB, free: 21.91 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003557/0.9212, allocations: 254 kB / 1.08 GB, free: 21.82 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005108/0.9218, allocations: 394.7 kB / 1.081 GB, free: 21.64 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.126e-06/0.9218, allocations: 0.9375 kB / 1.081 GB, free: 21.64 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0008265/0.9226, allocations: 0.5133 MB / 1.081 GB, free: 21.41 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.9226, allocations: 42.77 kB / 1.081 GB, free: 21.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.9227, allocations: 2.312 kB / 1.081 GB, free: 21.38 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.622e-06/0.9227, allocations: 3.859 kB / 1.081 GB, free: 21.38 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003212/0.923, allocations: 88.69 kB / 1.081 GB, free: 21.37 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.923, allocations: 3.938 kB / 1.081 GB, free: 21.37 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003813/0.9234, allocations: 69.81 kB / 1.081 GB, free: 21.36 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-05/0.9234, allocations: 20.28 kB / 1.081 GB, free: 21.36 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y,pidNoSca.con1.y,pidSca.con1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * 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.0001535/0.9236, allocations: 220.2 kB / 1.082 GB, free: 21.15 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.01e-05/0.9237, allocations: 44.56 kB / 1.082 GB, free: 21.15 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007954/0.9245, allocations: 431.5 kB / 1.082 GB, free: 20.96 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.9245, allocations: 4.5 kB / 1.082 GB, free: 20.96 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.9245, allocations: 3.938 kB / 1.082 GB, free: 20.96 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.9245, allocations: 2.391 kB / 1.082 GB, free: 20.96 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001536/0.926, allocations: 1.139 MB / 1.083 GB, free: 20.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.9261, allocations: 2.531 kB / 1.083 GB, free: 20.31 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003391/0.9264, allocations: 81.61 kB / 1.083 GB, free: 20.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.281e-06/0.9264, allocations: 3.406 kB / 1.083 GB, free: 20.3 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.804e-05/0.9265, allocations: 17.84 kB / 1.083 GB, free: 20.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.9265, allocations: 7.344 kB / 1.083 GB, free: 20.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.9265, allocations: 1.375 kB / 1.083 GB, free: 20.29 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.9275, allocations: 0.7279 MB / 1.084 GB, free: 19.88 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.037e-05/0.9276, allocations: 138.4 kB / 1.084 GB, free: 19.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.543e-05/0.9276, allocations: 18.19 kB / 1.084 GB, free: 19.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.9279, allocations: 28.7 kB / 1.084 GB, free: 19.73 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.368e-05/0.9279, allocations: 27.72 kB / 1.084 GB, free: 19.73 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.928, allocations: 17.69 kB / 1.084 GB, free: 19.73 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002946/0.9283, allocations: 270.9 kB / 1.085 GB, free: 19.59 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9283, allocations: 0 / 1.085 GB, free: 19.59 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006789/0.929, allocations: 200.9 kB / 1.085 GB, free: 19.53 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 4 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001992/0.9292, allocations: 128.5 kB / 1.085 GB, free: 19.43 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001524/0.9307, allocations: 0.803 MB / 1.086 GB, free: 19.05 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.9307, allocations: 1.25 kB / 1.086 GB, free: 19.05 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003572/0.9311, allocations: 206.7 kB / 1.086 GB, free: 18.98 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006123/0.9317, allocations: 94.16 kB / 1.086 GB, free: 18.95 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.9332, allocations: 0.9648 MB / 1.087 GB, free: 18.36 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.9335, allocations: 0.8506 MB / 1.088 GB, free: 17.66 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.9336, allocations: 40.39 kB / 1.088 GB, free: 17.65 MB / 0.8419 GB Notification: Performance of SimCode: time 4.41e-07/0.9336, allocations: 1.031 kB / 1.088 GB, free: 17.65 MB / 0.8419 GB Notification: Performance of Templates: time 0.01122/0.9448, allocations: 5.927 MB / 1.094 GB, free: 17.03 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches