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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001527/0.001527, allocations: 115.8 kB / 16.37 MB, free: 6 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.001631/0.001632, allocations: 193.3 kB / 17.31 MB, free: 5.613 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.404/1.404, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.747/2.747, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 58.75 kB / 0.8774 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3262, allocations: 153 MB / 1.027 GB, free: 2.02 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003279/0.3296, allocations: 2.085 MB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002276/0.3319, allocations: 1.611 MB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/0.3321, allocations: 11.94 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.3323, allocations: 83.06 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001805/0.3325, allocations: 79.19 kB / 1.031 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007188/0.3333, allocations: 322.6 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005775/0.3339, allocations: 0.7037 MB / 1.032 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004297/0.3343, allocations: 325.3 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.3345, allocations: 255.1 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.3348, allocations: 290.6 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.982e-05/0.3349, allocations: 76 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.335, allocations: 95.92 kB / 1.033 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.3351, allocations: 143.5 kB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002163/0.3353, allocations: 294.4 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006399/0.336, allocations: 0.829 MB / 1.034 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.336, allocations: 4 kB / 1.034 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.542e-06/0.336, allocations: 0 / 1.034 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.45e-05/0.336, allocations: 0 / 1.034 GB, free: 10.82 MB / 0.8106 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.00143/0.3375, allocations: 0.8994 MB / 1.035 GB, free: 9.867 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3375, allocations: 12.03 kB / 1.035 GB, free: 9.855 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.3376, allocations: 68.19 kB / 1.035 GB, free: 9.789 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005075/0.3381, allocations: 420.5 kB / 1.035 GB, free: 9.336 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/0.3382, allocations: 41.38 kB / 1.035 GB, free: 9.297 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.661e-05/0.3383, allocations: 52.38 kB / 1.035 GB, free: 9.246 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00076/0.339, allocations: 499.5 kB / 1.036 GB, free: 8.746 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.3391, allocations: 4.188 kB / 1.036 GB, free: 8.742 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.388e-05/0.3391, allocations: 27.94 kB / 1.036 GB, free: 8.715 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.3391, allocations: 12 kB / 1.036 GB, free: 8.703 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000646/0.3398, allocations: 343.8 kB / 1.036 GB, free: 8.363 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.342, allocations: 1.55 MB / 1.038 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008924/0.3429, allocations: 0.8612 MB / 1.038 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003586/0.3432, allocations: 234.1 kB / 1.039 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.973e-05/0.3433, allocations: 7.984 kB / 1.039 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003986/0.3437, allocations: 240.8 kB / 1.039 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=47): time 2.084e-06/0.3437, allocations: 0 / 1.039 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of matching and sorting (n=47): time 0.001019/0.3447, allocations: 0.5297 MB / 1.039 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.205e-05/0.3448, allocations: 111.2 kB / 1.039 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.3452, allocations: 377.7 kB / 1.04 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.3452, allocations: 45.69 kB / 1.04 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.3454, allocations: 256.9 kB / 1.04 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.3455, allocations: 153.7 kB / 1.04 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.3457, allocations: 102.2 kB / 1.04 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.3458, allocations: 354.8 kB / 1.041 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003883/0.3462, allocations: 187 kB / 1.041 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/0.3466, allocations: 280.2 kB / 1.041 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006711/0.3473, allocations: 431.4 kB / 1.042 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3473, allocations: 0 / 1.042 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001031/0.3484, allocations: 0.5674 MB / 1.042 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.3484, allocations: 41.64 kB / 1.042 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3484, allocations: 0 / 1.042 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.3485, allocations: 4 kB / 1.042 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000402/0.3489, allocations: 108 kB / 1.042 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.3489, allocations: 8 kB / 1.042 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003696/0.3493, allocations: 83.47 kB / 1.042 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.3493, allocations: 16 kB / 1.042 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004115/0.3497, allocations: 297.1 kB / 1.043 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003427/0.3501, allocations: 252.3 kB / 1.043 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005314/0.3506, allocations: 391.4 kB / 1.043 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.643e-06/0.3506, allocations: 0 / 1.043 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0008551/0.3515, allocations: 0.5206 MB / 1.044 GB, free: 16 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.3516, allocations: 41.72 kB / 1.044 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3516, allocations: 7.938 kB / 1.044 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.71e-06/0.3516, allocations: 4 kB / 1.044 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/0.3519, allocations: 79.91 kB / 1.044 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.3519, allocations: 7.938 kB / 1.044 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.3522, allocations: 71.62 kB / 1.044 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.187e-05/0.3523, allocations: 20 kB / 1.044 GB, free: 15.78 MB / 0.8262 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.0001747/0.3525, allocations: 220.1 kB / 1.044 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.471e-05/0.3526, allocations: 47.38 kB / 1.044 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000855/0.3534, allocations: 437.3 kB / 1.045 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.3534, allocations: 4 kB / 1.045 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3535, allocations: 0 / 1.045 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.3535, allocations: 4.094 kB / 1.045 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.355, allocations: 1.132 MB / 1.046 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.3551, allocations: 0 / 1.046 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003455/0.3554, allocations: 87.83 kB / 1.046 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.3554, allocations: 4 kB / 1.046 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.3555, allocations: 12 kB / 1.046 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.3555, allocations: 7.984 kB / 1.046 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3555, allocations: 3.938 kB / 1.046 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.3565, allocations: 0.7262 MB / 1.047 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.645e-05/0.3566, allocations: 124.5 kB / 1.047 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.269e-05/0.3567, allocations: 12 kB / 1.047 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.3569, allocations: 23.97 kB / 1.047 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.911e-05/0.357, allocations: 31.91 kB / 1.047 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.362e-05/0.357, allocations: 19.98 kB / 1.047 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002892/0.3573, allocations: 275.2 kB / 1.047 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.292e-06/0.3573, allocations: 0 / 1.047 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006158/0.358, allocations: 203.1 kB / 1.047 GB, free: 12.29 MB / 0.8262 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.0002518/0.3582, allocations: 127.1 kB / 1.047 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001326/0.3595, allocations: 0.7802 MB / 1.048 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3596, allocations: 4 kB / 1.048 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003181/0.3599, allocations: 195.5 kB / 1.048 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.3605, allocations: 100.3 kB / 1.048 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.3619, allocations: 0.9178 MB / 1.049 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.3623, allocations: 0.8474 MB / 1.05 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001895/0.3625, allocations: 55.36 kB / 1.05 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.3626, allocations: 39.44 kB / 1.05 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3626, allocations: 0 / 1.05 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of Templates: time 0.01112/0.3737, allocations: 5.997 MB / 1.056 GB, free: 3.18 MB / 0.8262 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 -s gbode -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