Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007043/0.007043, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001385/0.001385, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.61/2.61, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 69.39 kB / 0.9509 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3324, allocations: 140.4 MB / 1.088 GB, free: 1.461 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.00203/0.3345, allocations: 0.787 MB / 1.089 GB, free: 0.6719 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001664/0.3362, allocations: 1.145 MB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.114e-05/0.3362, allocations: 0 / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.058e-05/0.3363, allocations: 7.938 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.403e-05/0.3364, allocations: 19.84 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004736/0.3368, allocations: 129.7 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.337, allocations: 127.8 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.3371, allocations: 23.97 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.781e-05/0.3373, allocations: 43.91 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.3374, allocations: 51.81 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.3374, allocations: 12 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.417e-05/0.3375, allocations: 31.91 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.658e-05/0.3375, allocations: 15.92 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.753e-05/0.3376, allocations: 43.84 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.3378, allocations: 115.6 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3378, allocations: 0 / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3378, allocations: 0 / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.3378, allocations: 4 kB / 1.09 GB, free: 14.9 MB / 0.8575 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.0007351/0.3385, allocations: 427.1 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.3386, allocations: 8.031 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.677e-05/0.3387, allocations: 8.891 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.3388, allocations: 182.4 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.636e-05/0.3388, allocations: 4.375 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.3389, allocations: 12.38 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002617/0.3391, allocations: 82.14 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.3391, allocations: 4.172 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.3392, allocations: 3.938 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.3392, allocations: 0 / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003126/0.3395, allocations: 71.92 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000627/0.3401, allocations: 332.7 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.3403, allocations: 58.42 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.3405, allocations: 44.91 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.3405, allocations: 3.938 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004066/0.3409, allocations: 95.34 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.473e-06/0.341, allocations: 0 / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.000636/0.3416, allocations: 169.7 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.3416, allocations: 51.41 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.3418, allocations: 130 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.3418, allocations: 25.7 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.664e-05/0.3419, allocations: 88.14 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.3419, allocations: 23.92 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.886e-05/0.342, allocations: 33.69 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3421, allocations: 322.8 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.3423, allocations: 63.94 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.3425, allocations: 82.59 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003764/0.3429, allocations: 148.1 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3429, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000537/0.3435, allocations: 203.2 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.899e-05/0.3435, allocations: 37.7 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3435, allocations: 4.062 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.3436, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.3437, allocations: 15.97 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.3437, allocations: 4 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.344, allocations: 35.91 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.344, allocations: 12 kB / 1.093 GB, free: 11.9 MB / 0.8575 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.0001552/0.3442, allocations: 133.7 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.755e-05/0.3442, allocations: 11.94 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.2e-05/0.3442, allocations: 8.375 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3442, allocations: 0 / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3442, allocations: 4 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/0.3442, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.3445, allocations: 177.6 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3445, allocations: 0 / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.3446, allocations: 19.97 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3446, allocations: 4 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.3446, allocations: 4 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3446, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3446, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005438/0.3452, allocations: 156.9 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.045e-05/0.3452, allocations: 93 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.3452, allocations: 0 / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.488e-05/0.3453, allocations: 15.98 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.812e-05/0.3454, allocations: 3.984 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.3454, allocations: 4.125 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001526/0.3456, allocations: 101.5 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3456, allocations: 0 / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002194/0.3458, allocations: 20 kB / 1.094 GB, free: 11.06 MB / 0.8575 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.0001958/0.346, allocations: 119.2 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005015/0.3465, allocations: 187.2 kB / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3465, allocations: 0 / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.3467, allocations: 43.97 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.3469, allocations: 27.98 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003594/0.3473, allocations: 158 kB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.3476, allocations: 0.6885 MB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.074e-05/0.3477, allocations: 7.75 kB / 1.095 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.803e-05/0.3477, allocations: 15.38 kB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.3477, allocations: 0 / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of Templates: time 0.004421/0.3521, allocations: 1.574 MB / 1.097 GB, free: 8.195 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches