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.001395/0.001395, allocations: 112.2 kB / 16.37 MB, free: 5.953 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.001485/0.001485, allocations: 190.2 kB / 17.3 MB, free: 5.578 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.474/1.474, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.539/2.539, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001274, allocations: 68.17 kB / 0.8774 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3864/0.3877, allocations: 153 MB / 1.027 GB, free: 2.035 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003659/0.3914, allocations: 2.079 MB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002651/0.3941, allocations: 1.615 MB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002131/0.3943, allocations: 11.94 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002788/0.3947, allocations: 79.06 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001849/0.3949, allocations: 83.19 kB / 1.031 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007854/0.3956, allocations: 322.9 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006585/0.3963, allocations: 0.6959 MB / 1.032 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00051/0.3968, allocations: 321.3 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.3971, allocations: 263 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003034/0.3974, allocations: 286.6 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.215e-05/0.3975, allocations: 76 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.3977, allocations: 95.92 kB / 1.033 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001412/0.3978, allocations: 143.5 kB / 1.033 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.3981, allocations: 294.5 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007771/0.3989, allocations: 0.8328 MB / 1.034 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.604e-05/0.3989, allocations: 4 kB / 1.034 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.014e-06/0.3989, allocations: 4 kB / 1.034 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.908e-06/0.3989, allocations: 0 / 1.034 GB, free: 10.84 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.001667/0.4006, allocations: 0.8955 MB / 1.035 GB, free: 9.887 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.192e-05/0.4007, allocations: 15.97 kB / 1.035 GB, free: 9.871 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.4008, allocations: 68.17 kB / 1.035 GB, free: 9.805 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007276/0.4016, allocations: 412.5 kB / 1.035 GB, free: 9.359 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.4016, allocations: 45.36 kB / 1.035 GB, free: 9.316 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-05/0.4017, allocations: 52.38 kB / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008467/0.4026, allocations: 0.4956 MB / 1.036 GB, free: 8.758 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.4026, allocations: 4.172 kB / 1.036 GB, free: 8.754 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.393e-05/0.4027, allocations: 23.94 kB / 1.036 GB, free: 8.73 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.4027, allocations: 12 kB / 1.036 GB, free: 8.719 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006497/0.4033, allocations: 343.8 kB / 1.036 GB, free: 8.379 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002321/0.4057, allocations: 1.554 MB / 1.038 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.4067, allocations: 0.8612 MB / 1.038 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003829/0.4071, allocations: 230.1 kB / 1.039 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.102e-05/0.4072, allocations: 4 kB / 1.039 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004488/0.4076, allocations: 244.8 kB / 1.039 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=47): time 2.074e-06/0.4077, allocations: 0 / 1.039 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of matching and sorting (n=47): time 0.001081/0.4088, allocations: 0.5258 MB / 1.039 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.4088, allocations: 111.2 kB / 1.039 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004278/0.4093, allocations: 385.7 kB / 1.04 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/0.4093, allocations: 37.7 kB / 1.04 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.4096, allocations: 260.9 kB / 1.04 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.4097, allocations: 157.7 kB / 1.04 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.4099, allocations: 98.23 kB / 1.04 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.41, allocations: 358.8 kB / 1.041 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003917/0.4104, allocations: 187 kB / 1.041 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004374/0.4109, allocations: 280.2 kB / 1.041 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006996/0.4116, allocations: 431.4 kB / 1.042 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4116, allocations: 0 / 1.042 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001049/0.4126, allocations: 0.5674 MB / 1.042 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.721e-05/0.4127, allocations: 41.64 kB / 1.042 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.4127, allocations: 4 kB / 1.042 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.4127, allocations: 4 kB / 1.042 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003905/0.4131, allocations: 104 kB / 1.042 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.4131, allocations: 4 kB / 1.042 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003656/0.4135, allocations: 83.47 kB / 1.042 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.136e-05/0.4136, allocations: 20 kB / 1.042 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004335/0.414, allocations: 281.2 kB / 1.043 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003536/0.4144, allocations: 264.2 kB / 1.043 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005335/0.4149, allocations: 391.4 kB / 1.043 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.873e-06/0.4149, allocations: 0 / 1.043 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.000839/0.4158, allocations: 0.5245 MB / 1.044 GB, free: 28 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.612e-05/0.4158, allocations: 37.69 kB / 1.044 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.4158, allocations: 7.938 kB / 1.044 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.931e-06/0.4159, allocations: 4 kB / 1.044 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003055/0.4162, allocations: 83.91 kB / 1.044 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.4162, allocations: 7.938 kB / 1.044 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003339/0.4165, allocations: 71.62 kB / 1.044 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-05/0.4166, allocations: 20.09 kB / 1.044 GB, free: 15.79 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.0001709/0.4168, allocations: 212.1 kB / 1.044 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.935e-05/0.4168, allocations: 47.38 kB / 1.044 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007769/0.4176, allocations: 437.3 kB / 1.045 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.4176, allocations: 4 kB / 1.045 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4176, allocations: 4 kB / 1.045 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.4177, allocations: 7.984 kB / 1.045 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001659/0.4193, allocations: 1.124 MB / 1.046 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4193, allocations: 0 / 1.046 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000334/0.4197, allocations: 87.83 kB / 1.046 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.4197, allocations: 4 kB / 1.046 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.4197, allocations: 12 kB / 1.046 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.4197, allocations: 4 kB / 1.046 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.4197, allocations: 3.938 kB / 1.046 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.4209, allocations: 0.7302 MB / 1.047 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.697e-05/0.421, allocations: 124.5 kB / 1.047 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.847e-05/0.421, allocations: 20 kB / 1.047 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.4213, allocations: 23.97 kB / 1.047 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.195e-05/0.4213, allocations: 27.91 kB / 1.047 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/0.4214, allocations: 19.98 kB / 1.047 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003018/0.4217, allocations: 275.2 kB / 1.047 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4217, allocations: 0 / 1.047 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005956/0.4223, allocations: 199.2 kB / 1.047 GB, free: 12.31 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.0002376/0.4225, allocations: 127 kB / 1.047 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001317/0.4239, allocations: 0.784 MB / 1.048 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4239, allocations: 0 / 1.048 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003184/0.4242, allocations: 196.6 kB / 1.048 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005977/0.4248, allocations: 96.39 kB / 1.048 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.4264, allocations: 0.9218 MB / 1.049 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004581/0.4269, allocations: 0.8474 MB / 1.05 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001924/0.4271, allocations: 59.36 kB / 1.05 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.4272, allocations: 39.42 kB / 1.05 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.4272, allocations: 0 / 1.05 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of Templates: time 0.01148/0.4387, allocations: 5.986 MB / 1.056 GB, free: 3.203 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 cvode -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