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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008895/0.008895, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.002135/0.002135, allocations: 190.4 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.957/1.957, allocations: 222.9 MB / 240.4 MB, free: 4.191 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 3.769/3.769, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 72.72 kB / 0.9505 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.364, allocations: 140.4 MB / 1.088 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.002114/0.3662, allocations: 0.7886 MB / 1.088 GB, free: 1.195 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001503/0.3677, allocations: 1.145 MB / 1.089 GB, free: 36 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.425e-05/0.3678, allocations: 4 kB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.965e-05/0.3678, allocations: 3.938 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.878e-05/0.3679, allocations: 11.86 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005865/0.3685, allocations: 140.5 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.3688, allocations: 135.7 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.3689, allocations: 15.98 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.369, allocations: 47.84 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.3691, allocations: 55.86 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.3692, allocations: 8 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.781e-05/0.3693, allocations: 31.98 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.727e-05/0.3693, allocations: 11.92 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.659e-05/0.3694, allocations: 43.84 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.3696, allocations: 122.5 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3696, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.003e-06/0.3696, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.3696, allocations: 0 / 1.09 GB, free: 15.42 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.0007181/0.3704, allocations: 423.2 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.3704, allocations: 12.02 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.572e-05/0.3705, allocations: 46.69 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.298e-05/0.3705, allocations: 12.84 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.3706, allocations: 172.2 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.3707, allocations: 4.375 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.861e-05/0.3707, allocations: 4.375 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.371, allocations: 78.2 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.371, allocations: 7.875 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.371, allocations: 7.984 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.3711, allocations: 4 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000335/0.3714, allocations: 71.86 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004548/0.3719, allocations: 328.7 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002147/0.3721, allocations: 58.53 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.3723, allocations: 40.92 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.3723, allocations: 0 / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003348/0.3726, allocations: 95.28 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.3727, allocations: 4 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006921/0.3733, allocations: 161.5 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.3734, allocations: 55.41 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.3735, allocations: 125.1 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.3736, allocations: 29.7 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.281e-05/0.3736, allocations: 96.05 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.3737, allocations: 19.73 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.012e-05/0.3737, allocations: 33.7 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.3739, allocations: 326.8 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/0.3741, allocations: 59.89 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002899/0.3744, allocations: 82.52 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004118/0.3748, allocations: 136.2 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3749, allocations: 4 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005673/0.3754, allocations: 215.1 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.232e-05/0.3755, allocations: 37.69 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.3755, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.3755, allocations: 3.938 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.3757, allocations: 19.98 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.3757, allocations: 4.062 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.376, allocations: 35.95 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/0.376, allocations: 8.062 kB / 1.093 GB, free: 12.38 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.0001039/0.3761, allocations: 125.8 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.621e-05/0.3761, allocations: 3.906 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.505e-05/0.3762, allocations: 12.38 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3762, allocations: 4 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3762, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3762, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001545/0.3763, allocations: 189.9 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3764, allocations: 4 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.3765, allocations: 16.08 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3765, allocations: 7.875 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.3765, allocations: 7.938 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.3765, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3765, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004576/0.377, allocations: 156.9 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.517e-05/0.3771, allocations: 81.05 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.08e-05/0.3771, allocations: 7.984 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.113e-05/0.3772, allocations: 7.984 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.097e-05/0.3772, allocations: 15.98 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.3773, allocations: 0 / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.426e-05/0.3773, allocations: 95.27 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3773, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002475/0.3776, allocations: 23.91 kB / 1.093 GB, free: 11.54 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.0008003/0.3784, allocations: 0.6904 MB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005222/0.3789, allocations: 187.2 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3789, allocations: 128 / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001962/0.3791, allocations: 51.95 kB / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.3794, allocations: 16 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.3819, allocations: 1.633 MB / 1.096 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.3821, allocations: 0.6924 MB / 1.097 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.309e-05/0.3822, allocations: 0 / 1.097 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.999e-05/0.3823, allocations: 19.44 kB / 1.097 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/0.3823, allocations: 0 / 1.097 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.965/1.347, allocations: 2.688 MB / 1.099 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.45/18.8, allocations: 11.39 kB / 1.099 GB, free: 5.5 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.fmu > 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/jenkins1/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