Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.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.OBC.CDL.Reals.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 105.4 kB / 16.27 MB, free: 5.996 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.001559/0.001559, allocations: 186.3 kB / 17.2 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.384/1.384, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.679/2.679, allocations: 437 MB / 0.711 GB, free: 4.535 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 64.38 kB / 0.8699 GB, free: 2.242 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2845, allocations: 151.6 MB / 1.018 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.003629/0.2882, allocations: 2.172 MB / 1.02 GB, free: 8.5 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00264/0.2908, allocations: 1.681 MB / 1.022 GB, free: 6.801 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000427/0.2913, allocations: 12 kB / 1.022 GB, free: 6.789 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0003328/0.2917, allocations: 90.98 kB / 1.022 GB, free: 6.699 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003379/0.292, allocations: 87.12 kB / 1.022 GB, free: 6.613 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001119/0.2931, allocations: 425.1 kB / 1.022 GB, free: 6.203 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0009142/0.2941, allocations: 0.7896 MB / 1.023 GB, free: 5.414 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006175/0.2947, allocations: 377.8 kB / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003897/0.2951, allocations: 299 kB / 1.024 GB, free: 4.738 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003822/0.2955, allocations: 310.5 kB / 1.024 GB, free: 4.434 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001594/0.2956, allocations: 84 kB / 1.024 GB, free: 4.352 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.2958, allocations: 104 kB / 1.024 GB, free: 4.25 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.296, allocations: 155.5 kB / 1.024 GB, free: 4.098 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003196/0.2963, allocations: 334.3 kB / 1.025 GB, free: 3.77 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0008298/0.2971, allocations: 0.8803 MB / 1.026 GB, free: 2.887 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.2972, allocations: 3.938 kB / 1.026 GB, free: 2.883 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2972, allocations: 0 / 1.026 GB, free: 2.883 MB / 0.795 GB Notification: Performance of Transformations before backend: time 2.486e-05/0.2972, allocations: 0 / 1.026 GB, free: 2.883 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001933/0.2991, allocations: 0.9771 MB / 1.026 GB, free: 1.84 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.2992, allocations: 8.922 kB / 1.027 GB, free: 1.832 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.2994, allocations: 76.09 kB / 1.027 GB, free: 1.758 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.2999, allocations: 414 kB / 1.027 GB, free: 1.312 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.842e-05/0.3, allocations: 45.69 kB / 1.027 GB, free: 1.27 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.3001, allocations: 72.27 kB / 1.027 GB, free: 1.199 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008823/0.301, allocations: 0.5236 MB / 1.028 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.301, allocations: 192 / 1.028 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.422e-05/0.3011, allocations: 23.94 kB / 1.028 GB, free: 0.6367 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.3011, allocations: 12 kB / 1.028 GB, free: 0.625 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000716/0.3018, allocations: 365.1 kB / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00263/0.3045, allocations: 1.673 MB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.3055, allocations: 0.895 MB / 1.03 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00046/0.306, allocations: 246.7 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.3061, allocations: 12.44 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005172/0.3066, allocations: 285.2 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=53): time 2.285e-06/0.3066, allocations: 0 / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of matching and sorting (n=53): time 0.001186/0.3078, allocations: 0.5728 MB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.3079, allocations: 115.2 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004831/0.3084, allocations: 401.6 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.398e-05/0.3085, allocations: 41.69 kB / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.00022/0.3087, allocations: 257.1 kB / 1.032 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.3088, allocations: 169.5 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002532/0.3091, allocations: 118.2 kB / 1.033 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002704/0.3094, allocations: 366.7 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000497/0.3099, allocations: 214.9 kB / 1.033 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005719/0.3105, allocations: 311.3 kB / 1.033 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008613/0.3113, allocations: 491.5 kB / 1.034 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.3113, allocations: 4 kB / 1.034 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001385/0.3127, allocations: 0.6687 MB / 1.035 GB, free: 9.152 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.145e-05/0.3128, allocations: 75.55 kB / 1.035 GB, free: 9.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.3129, allocations: 0 / 1.035 GB, free: 9.066 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.3129, allocations: 4 kB / 1.035 GB, free: 9.062 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004268/0.3133, allocations: 95.88 kB / 1.035 GB, free: 8.969 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.3133, allocations: 7.938 kB / 1.035 GB, free: 8.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006761/0.314, allocations: 111.4 kB / 1.035 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.788e-05/0.3141, allocations: 27.98 kB / 1.035 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005479/0.3147, allocations: 323.5 kB / 1.035 GB, free: 8.508 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004639/0.3151, allocations: 275.4 kB / 1.035 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007057/0.3158, allocations: 463.4 kB / 1.036 GB, free: 7.723 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.096e-06/0.3159, allocations: 0 / 1.036 GB, free: 7.723 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.00116/0.317, allocations: 0.6259 MB / 1.037 GB, free: 7.074 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.378e-05/0.3171, allocations: 71.39 kB / 1.037 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3171, allocations: 0 / 1.037 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.925e-06/0.3171, allocations: 4 kB / 1.037 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003387/0.3175, allocations: 91.83 kB / 1.037 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.3175, allocations: 8 kB / 1.037 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005651/0.3181, allocations: 95.77 kB / 1.037 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-05/0.3181, allocations: 23.98 kB / 1.037 GB, free: 6.773 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,booPul.y,$PRE.booPul.y,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 2 * 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.0002362/0.3184, allocations: 224.1 kB / 1.037 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.676e-05/0.3185, allocations: 47.44 kB / 1.037 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009228/0.3194, allocations: 477.5 kB / 1.038 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.3194, allocations: 4 kB / 1.038 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3194, allocations: 0 / 1.038 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.3194, allocations: 3.984 kB / 1.038 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002004/0.3214, allocations: 1.233 MB / 1.039 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.3215, allocations: 0 / 1.039 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003701/0.3218, allocations: 88.08 kB / 1.039 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.978e-06/0.3219, allocations: 4 kB / 1.039 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.3219, allocations: 16 kB / 1.039 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.3219, allocations: 3.938 kB / 1.039 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3219, allocations: 4 kB / 1.039 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.3232, allocations: 0.7872 MB / 1.04 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.3233, allocations: 132.5 kB / 1.04 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.571e-05/0.3234, allocations: 15.98 kB / 1.04 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.3236, allocations: 27.98 kB / 1.04 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.3238, allocations: 36.33 kB / 1.04 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.324e-05/0.3238, allocations: 19.98 kB / 1.04 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003807/0.3242, allocations: 287.2 kB / 1.04 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3242, allocations: 0 / 1.04 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0007224/0.3249, allocations: 223.2 kB / 1.04 GB, free: 3.035 MB / 0.8106 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: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 51 * 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.000213/0.3252, allocations: 133.1 kB / 1.04 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001961/0.3271, allocations: 1.033 MB / 1.041 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.3271, allocations: 4.125 kB / 1.041 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004049/0.3276, allocations: 226.3 kB / 1.042 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007264/0.3283, allocations: 114 kB / 1.042 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.3301, allocations: 1.028 MB / 1.043 GB, free: 412 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00045/0.3306, allocations: 0.8554 MB / 1.044 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.3307, allocations: 47.42 kB / 1.044 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.3307, allocations: 0 / 1.044 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of Templates: time 0.01053/0.3413, allocations: 6.516 MB / 1.05 GB, free: 8.969 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches