Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_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_latest_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.001356/0.001356, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001573/0.001574, allocations: 196.3 kB / 16.53 MB, free: 6.664 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.513/1.513, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.969/2.969, allocations: 472.6 MB / 0.7451 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 64.36 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3582, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002341/0.3606, allocations: 0.7838 MB / 1.069 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00167/0.3623, allocations: 1.153 MB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.105e-05/0.3624, allocations: 0 / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.527e-05/0.3624, allocations: 7.875 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.3626, allocations: 15.88 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005454/0.3631, allocations: 131.2 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.3634, allocations: 135.8 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.3635, allocations: 15.98 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.3636, allocations: 55.84 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.3637, allocations: 47.86 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.664e-05/0.3638, allocations: 12 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.324e-05/0.3639, allocations: 27.92 kB / 1.071 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.954e-05/0.3639, allocations: 11.94 kB / 1.071 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.913e-05/0.364, allocations: 43.84 kB / 1.071 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000197/0.3642, allocations: 123.6 kB / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3642, allocations: 0 / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.487e-06/0.3642, allocations: 4 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.3642, allocations: 3.938 kB / 1.071 GB, free: 7.836 MB / 0.8262 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.0006853/0.3649, allocations: 421.2 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.365, allocations: 12.03 kB / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.051e-05/0.365, allocations: 8.844 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.3652, allocations: 172.2 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.3652, allocations: 8.375 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/0.3652, allocations: 12.36 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.3655, allocations: 86.12 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.3655, allocations: 192 / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.3655, allocations: 3.938 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.3655, allocations: 0 / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003003/0.3658, allocations: 75.92 kB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.3663, allocations: 324.7 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.3665, allocations: 58.47 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.3667, allocations: 48.91 kB / 1.072 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.3667, allocations: 0 / 1.072 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003043/0.367, allocations: 87.36 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 4.449e-06/0.3671, allocations: 0 / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0005966/0.3677, allocations: 177.4 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.3677, allocations: 55.34 kB / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.662e-05/0.3678, allocations: 122.1 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.3679, allocations: 29.7 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.593e-05/0.3679, allocations: 96.03 kB / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.368, allocations: 19.75 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.022e-05/0.368, allocations: 29.7 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3681, allocations: 326.8 kB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.3684, allocations: 59.94 kB / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.3686, allocations: 82.53 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.369, allocations: 144.1 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.369, allocations: 0 / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005385/0.3695, allocations: 215.2 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.915e-05/0.3696, allocations: 37.7 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3696, allocations: 0 / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.3696, allocations: 4 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.3698, allocations: 23.95 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.3698, allocations: 0 / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.37, allocations: 40.11 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.3701, allocations: 11.94 kB / 1.073 GB, free: 4.828 MB / 0.8262 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.0001092/0.3702, allocations: 121.8 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.753e-05/0.3702, allocations: 11.84 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.921e-05/0.3702, allocations: 8.375 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3702, allocations: 4 kB / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.3702, allocations: 0 / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.3703, allocations: 4 kB / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.3704, allocations: 181.6 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3704, allocations: 0 / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.3705, allocations: 15.98 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.3706, allocations: 0 / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.3706, allocations: 4 kB / 1.074 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.3706, allocations: 0 / 1.074 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3706, allocations: 4 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004213/0.371, allocations: 156.9 kB / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.768e-05/0.3711, allocations: 81.39 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.3711, allocations: 3.984 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.889e-05/0.3712, allocations: 23.92 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.158e-05/0.3713, allocations: 7.938 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.3713, allocations: 3.984 kB / 1.074 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.413e-05/0.3713, allocations: 102.8 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.61e-07/0.3713, allocations: 0 / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002254/0.3716, allocations: 23.98 kB / 1.074 GB, free: 3.992 MB / 0.8262 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.0001748/0.3718, allocations: 99.78 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005006/0.3723, allocations: 199.2 kB / 1.074 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3723, allocations: 0 / 1.074 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001786/0.3725, allocations: 47.95 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002186/0.3727, allocations: 21.42 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004065/0.3731, allocations: 162.1 kB / 1.075 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.3734, allocations: 0.6846 MB / 1.075 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.137e-05/0.3734, allocations: 7.984 kB / 1.075 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.097e-05/0.3735, allocations: 11.44 kB / 1.075 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3735, allocations: 3.938 kB / 1.075 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of Templates: time 0.004246/0.3777, allocations: 1.576 MB / 1.077 GB, free: 1.137 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches