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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_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.008436/0.008436, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.002213/0.002213, allocations: 191.2 kB / 16.67 MB, free: 5.93 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.447/2.447, allocations: 437 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 60.12 kB / 1.018 GB, free: 9.848 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9085/0.9098, allocations: 151.6 MB / 1.166 GB, free: 3.777 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001907/0.9118, allocations: 0.7866 MB / 1.167 GB, free: 2.992 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001518/0.9133, allocations: 1.158 MB / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.942e-05/0.9134, allocations: 4 kB / 1.168 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.149e-05/0.9135, allocations: 11.86 kB / 1.168 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.701e-05/0.9136, allocations: 11.86 kB / 1.168 GB, free: 1.793 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005525/0.9141, allocations: 139.7 kB / 1.168 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.9143, allocations: 127.8 kB / 1.168 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.9144, allocations: 15.98 kB / 1.168 GB, free: 1.52 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.9146, allocations: 59.83 kB / 1.168 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.9147, allocations: 47.81 kB / 1.169 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.9147, allocations: 12 kB / 1.169 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.3e-05/0.9148, allocations: 20 kB / 1.169 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.056e-05/0.9148, allocations: 27.91 kB / 1.169 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.794e-05/0.9149, allocations: 39.84 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001831/0.9151, allocations: 125.9 kB / 1.169 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.9151, allocations: 0 / 1.169 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.663e-06/0.9151, allocations: 0 / 1.169 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.9151, allocations: 0 / 1.169 GB, free: 1.195 MB / 0.8887 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.0006205/0.9157, allocations: 421 kB / 1.169 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.9158, allocations: 8.922 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.271e-05/0.9158, allocations: 34.75 kB / 1.169 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.465e-05/0.9159, allocations: 12.84 kB / 1.169 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.916, allocations: 184.1 kB / 1.169 GB, free: 456 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.916, allocations: 384 / 1.169 GB, free: 456 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.916, allocations: 12.38 kB / 1.169 GB, free: 444 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002577/0.9163, allocations: 74.2 kB / 1.169 GB, free: 364 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.9163, allocations: 3.938 kB / 1.169 GB, free: 360 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.9163, allocations: 0 / 1.169 GB, free: 360 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.9163, allocations: 8 kB / 1.169 GB, free: 352 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002786/0.9166, allocations: 67.92 kB / 1.17 GB, free: 284 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004832/0.9171, allocations: 328.7 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.9173, allocations: 54.53 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.9175, allocations: 44.91 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.9175, allocations: 3.938 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003278/0.9179, allocations: 103.2 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.9179, allocations: 7.938 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.0005986/0.9185, allocations: 153.6 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.9185, allocations: 51.41 kB / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.9186, allocations: 135.2 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.9187, allocations: 29.7 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.004e-05/0.9187, allocations: 96.05 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.9188, allocations: 19.88 kB / 1.17 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.231e-05/0.9189, allocations: 33.69 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.919, allocations: 318.8 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/0.9192, allocations: 59.94 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.9194, allocations: 86.47 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/0.9198, allocations: 144.3 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.9198, allocations: 0 / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005314/0.9203, allocations: 215.1 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.621e-05/0.9204, allocations: 37.7 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.9204, allocations: 0 / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.9204, allocations: 0 / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.9206, allocations: 23.91 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.9206, allocations: 4.062 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.9208, allocations: 35.95 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.9208, allocations: 8 kB / 1.171 GB, free: 14.16 MB / 0.9044 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.0001065/0.9209, allocations: 129.7 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.648e-05/0.921, allocations: 7.906 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.123e-05/0.921, allocations: 8.375 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.921, allocations: 3.984 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.921, allocations: 4 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.921, allocations: 0 / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.9212, allocations: 189.5 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.9212, allocations: 0 / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.789e-05/0.9213, allocations: 11.98 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.9213, allocations: 4 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.9213, allocations: 4 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.9213, allocations: 0 / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.9213, allocations: 320 / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003671/0.9217, allocations: 160.8 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.795e-05/0.9218, allocations: 81.02 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.9218, allocations: 4.094 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.038e-05/0.9219, allocations: 19.91 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.9219, allocations: 8 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.9219, allocations: 7.938 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.669e-05/0.922, allocations: 95.77 kB / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.922, allocations: 0 / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000224/0.9222, allocations: 27.98 kB / 1.172 GB, free: 13.31 MB / 0.9044 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.0006961/0.9229, allocations: 0.6904 MB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004545/0.9234, allocations: 183.3 kB / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.9234, allocations: 0 / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.9236, allocations: 56.02 kB / 1.173 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002142/0.9238, allocations: 12 kB / 1.173 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.926, allocations: 1.631 MB / 1.175 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.9262, allocations: 0.6924 MB / 1.175 GB, free: 9.883 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.839e-05/0.9263, allocations: 4 kB / 1.175 GB, free: 9.879 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.067e-05/0.9263, allocations: 23.44 kB / 1.175 GB, free: 9.855 MB / 0.9044 GB Notification: Performance of SimCode: time 4.51e-07/0.9263, allocations: 0 / 1.175 GB, free: 9.855 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.946, allocations: 2.686 MB / 1.178 GB, free: 7.27 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.533/8.479, allocations: 12.73 kB / 1.178 GB, free: 7.262 MB / 0.9044 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > 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