Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001782/0.001782, allocations: 105.6 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.002071/0.002071, 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.442/1.442, allocations: 222.9 MB / 240.9 MB, free: 15.21 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.708/2.708, allocations: 437.1 MB / 0.711 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 71.75 kB / 0.8699 GB, free: 2.129 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3185, allocations: 151.6 MB / 1.018 GB, free: 10.57 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002408/0.321, allocations: 0.7867 MB / 1.019 GB, free: 9.781 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001807/0.3228, allocations: 1.157 MB / 1.02 GB, free: 8.609 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.922e-05/0.3229, allocations: 0 / 1.02 GB, free: 8.609 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.429e-05/0.3229, allocations: 15.8 kB / 1.02 GB, free: 8.594 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.626e-05/0.323, allocations: 7.875 kB / 1.02 GB, free: 8.586 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006028/0.3237, allocations: 130.6 kB / 1.02 GB, free: 8.461 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002045/0.3239, allocations: 131.8 kB / 1.02 GB, free: 8.332 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.324, allocations: 19.97 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.3241, allocations: 51.84 kB / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.763e-05/0.3242, allocations: 47.88 kB / 1.02 GB, free: 8.215 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.385e-05/0.3243, allocations: 8 kB / 1.02 GB, free: 8.207 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.048e-05/0.3244, allocations: 31.92 kB / 1.02 GB, free: 8.176 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.821e-05/0.3244, allocations: 15.92 kB / 1.02 GB, free: 8.16 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.041e-05/0.3245, allocations: 47.84 kB / 1.02 GB, free: 8.113 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.3248, allocations: 119.6 kB / 1.02 GB, free: 7.996 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3248, allocations: 0 / 1.02 GB, free: 7.996 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3248, allocations: 0 / 1.02 GB, free: 7.996 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.3248, allocations: 0 / 1.02 GB, free: 7.996 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007668/0.3256, allocations: 433.1 kB / 1.021 GB, free: 7.516 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3256, allocations: 12.03 kB / 1.021 GB, free: 7.504 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.456e-05/0.3257, allocations: 12.84 kB / 1.021 GB, free: 7.492 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.3258, allocations: 168.3 kB / 1.021 GB, free: 7.289 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.3259, allocations: 4.375 kB / 1.021 GB, free: 7.285 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.3259, allocations: 4.375 kB / 1.021 GB, free: 7.281 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002822/0.3262, allocations: 78.2 kB / 1.021 GB, free: 7.199 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3262, allocations: 4.125 kB / 1.021 GB, free: 7.195 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.3262, allocations: 7.938 kB / 1.021 GB, free: 7.188 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.3262, allocations: 7.984 kB / 1.021 GB, free: 7.18 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003185/0.3266, allocations: 63.92 kB / 1.021 GB, free: 7.117 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005709/0.3271, allocations: 328.7 kB / 1.022 GB, free: 6.746 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.3274, allocations: 58.53 kB / 1.022 GB, free: 6.68 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.3275, allocations: 40.86 kB / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.3276, allocations: 8.062 kB / 1.022 GB, free: 6.629 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003233/0.3279, allocations: 99.34 kB / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.3279, allocations: 0 / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of matching and sorting (n=6): time 0.0006544/0.3286, allocations: 161.5 kB / 1.022 GB, free: 6.355 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.3286, allocations: 63.33 kB / 1.022 GB, free: 6.281 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.3288, allocations: 129 kB / 1.022 GB, free: 6.148 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.3288, allocations: 25.7 kB / 1.022 GB, free: 6.117 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.311e-05/0.3289, allocations: 100 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.421e-05/0.3289, allocations: 15.75 kB / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.878e-05/0.329, allocations: 37.7 kB / 1.022 GB, free: 5.957 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.3292, allocations: 326.8 kB / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.3294, allocations: 55.95 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.3297, allocations: 86.45 kB / 1.023 GB, free: 5.48 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.3301, allocations: 148.1 kB / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3301, allocations: 0 / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005963/0.3307, allocations: 203.2 kB / 1.023 GB, free: 5.109 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.665e-05/0.3308, allocations: 44.81 kB / 1.023 GB, free: 5.062 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3308, allocations: 0 / 1.023 GB, free: 5.062 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.3308, allocations: 0 / 1.023 GB, free: 5.062 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.3309, allocations: 20.05 kB / 1.023 GB, free: 5.043 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.331, allocations: 4 kB / 1.023 GB, free: 5.039 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.3312, allocations: 43.83 kB / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.3313, allocations: 8 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.000112/0.3314, allocations: 118.4 kB / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.127e-05/0.3314, allocations: 11.89 kB / 1.023 GB, free: 4.852 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.287e-05/0.3315, allocations: 12.38 kB / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.3315, allocations: 3.938 kB / 1.023 GB, free: 4.836 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.3315, allocations: 4 kB / 1.023 GB, free: 4.832 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3315, allocations: 0 / 1.023 GB, free: 4.832 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001769/0.3317, allocations: 185.6 kB / 1.023 GB, free: 4.602 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3317, allocations: 0 / 1.023 GB, free: 4.602 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.3318, allocations: 19.97 kB / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3318, allocations: 0 / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.3318, allocations: 0 / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3318, allocations: 0 / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3318, allocations: 4 kB / 1.024 GB, free: 4.578 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004205/0.3323, allocations: 149 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.391e-05/0.3323, allocations: 85.39 kB / 1.024 GB, free: 4.312 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.3323, allocations: 0 / 1.024 GB, free: 4.312 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.3324, allocations: 23.97 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.3325, allocations: 4 kB / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.3325, allocations: 11.88 kB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.151e-05/0.3326, allocations: 91.27 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of sort global known variables: time 4.71e-07/0.3326, allocations: 4 kB / 1.024 GB, free: 4.18 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002296/0.3328, allocations: 24 kB / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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.0002068/0.333, allocations: 103.2 kB / 1.024 GB, free: 4.047 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005646/0.3336, allocations: 191.2 kB / 1.024 GB, free: 3.848 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3336, allocations: 4 kB / 1.024 GB, free: 3.844 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002287/0.3339, allocations: 47.95 kB / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.3341, allocations: 20.03 kB / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004287/0.3345, allocations: 195.8 kB / 1.024 GB, free: 3.551 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.3349, allocations: 0.6885 MB / 1.025 GB, free: 2.836 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.674e-05/0.3349, allocations: 11.44 kB / 1.025 GB, free: 2.824 MB / 0.795 GB Notification: Performance of SimCode: time 2.21e-07/0.3349, allocations: 4 kB / 1.025 GB, free: 2.82 MB / 0.795 GB Notification: Performance of Templates: time 0.003485/0.3384, allocations: 1.306 MB / 1.026 GB, free: 1.527 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches