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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0007773/0.0007774, allocations: 98.56 kB / 16.02 MB, free: 76 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.0009188/0.0009189, allocations: 186.8 kB / 16.92 MB, free: 6.75 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.393/1.393, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.647/2.647, allocations: 437.8 MB / 0.7128 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.0003794, allocations: 16 kB / 0.8735 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6412/0.6416, allocations: 153.8 MB / 1.024 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.0009831/0.6427, allocations: 0.5143 MB / 1.024 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001491/0.6442, allocations: 1.156 MB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.007e-05/0.6442, allocations: 3.938 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.193e-05/0.6443, allocations: 7.938 kB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.643e-05/0.6443, allocations: 3.938 kB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004653/0.6448, allocations: 123.8 kB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000129/0.645, allocations: 115.7 kB / 1.026 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.6451, allocations: 15.97 kB / 1.026 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.6452, allocations: 43.91 kB / 1.026 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.924e-05/0.6453, allocations: 43.81 kB / 1.026 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.433e-05/0.6453, allocations: 8 kB / 1.026 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.004e-05/0.6454, allocations: 19.98 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.482e-05/0.6454, allocations: 15.92 kB / 1.026 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.068e-05/0.6455, allocations: 61.55 kB / 1.026 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.6456, allocations: 75.81 kB / 1.026 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.6456, allocations: 4 kB / 1.026 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.844e-06/0.6457, allocations: 0 / 1.026 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.6457, allocations: 0 / 1.026 GB, free: 13.61 MB / 0.7794 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.000612/0.6463, allocations: 423 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.6463, allocations: 8.031 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.027e-05/0.6464, allocations: 12.78 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.6465, allocations: 176.1 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.6465, allocations: 8.375 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.293e-05/0.6466, allocations: 8.375 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002778/0.6469, allocations: 94.19 kB / 1.027 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.6469, allocations: 192 / 1.027 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.6469, allocations: 3.938 kB / 1.027 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.6469, allocations: 4 kB / 1.027 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003429/0.6473, allocations: 99.83 kB / 1.027 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000464/0.6477, allocations: 332.7 kB / 1.027 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.6479, allocations: 66.53 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001856/0.6481, allocations: 56.92 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.6482, allocations: 0 / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/0.6485, allocations: 115.2 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.6485, allocations: 0 / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006539/0.6492, allocations: 189.6 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.6492, allocations: 59.39 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.51e-05/0.6493, allocations: 122 kB / 1.028 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.6493, allocations: 33.7 kB / 1.028 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.35e-05/0.6494, allocations: 96.03 kB / 1.028 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.6494, allocations: 11.81 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.846e-05/0.6495, allocations: 13.72 kB / 1.028 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.796e-05/0.6496, allocations: 326.8 kB / 1.028 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.6498, allocations: 71.95 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.6501, allocations: 98.39 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004062/0.6505, allocations: 172.2 kB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.6505, allocations: 0 / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005759/0.6511, allocations: 235.1 kB / 1.029 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.867e-05/0.6511, allocations: 33.7 kB / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.6511, allocations: 0 / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.6511, allocations: 0 / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.6513, allocations: 27.98 kB / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.6513, allocations: 7.984 kB / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.6516, allocations: 55.95 kB / 1.029 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.6516, allocations: 4 kB / 1.029 GB, free: 10.44 MB / 0.7794 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.0001024/0.6517, allocations: 129.7 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.422e-05/0.6517, allocations: 3.906 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/0.6518, allocations: 12.38 kB / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.6518, allocations: 0 / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.6518, allocations: 0 / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.6518, allocations: 0 / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.6519, allocations: 185.6 kB / 1.029 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.652, allocations: 3.984 kB / 1.029 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.6521, allocations: 19.98 kB / 1.029 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.6521, allocations: 7.938 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.6521, allocations: 320 / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.6521, allocations: 3.938 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.6521, allocations: 4 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004307/0.6525, allocations: 176.9 kB / 1.029 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/0.6526, allocations: 85.02 kB / 1.029 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.6526, allocations: 4 kB / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.493e-05/0.6527, allocations: 19.97 kB / 1.029 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.6528, allocations: 0 / 1.029 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.6528, allocations: 7.984 kB / 1.029 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.311e-05/0.6528, allocations: 91.28 kB / 1.029 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6528, allocations: 4 kB / 1.029 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002341/0.6531, allocations: 27.98 kB / 1.029 GB, free: 9.57 MB / 0.7794 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.000151/0.6532, allocations: 107.2 kB / 1.03 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005216/0.6538, allocations: 211.2 kB / 1.03 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.6538, allocations: 0 / 1.03 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000204/0.654, allocations: 68.02 kB / 1.03 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.6542, allocations: 15.97 kB / 1.03 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003542/0.6546, allocations: 208.3 kB / 1.03 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.6548, allocations: 0.6887 MB / 1.031 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.457e-05/0.6549, allocations: 11.44 kB / 1.031 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.6549, allocations: 0 / 1.031 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of Templates: time 0.002856/0.6577, allocations: 1.293 MB / 1.032 GB, free: 6.918 MB / 0.7794 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