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: 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.001795/0.001794, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00225/0.00225, allocations: 193.7 kB / 16.14 MB, free: 6.629 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.503/1.503, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.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.954/2.954, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 67.91 kB / 0.8686 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7932/0.7952, allocations: 151.6 MB / 1.017 GB, free: 2.785 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002397/0.7976, allocations: 0.8569 MB / 1.017 GB, free: 1.926 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001803/0.7995, allocations: 1.159 MB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.324e-05/0.7995, allocations: 0 / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.682e-05/0.7996, allocations: 7.922 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001123/0.7997, allocations: 11.94 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005151/0.8002, allocations: 127.5 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000149/0.8004, allocations: 103.8 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.8005, allocations: 19.97 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.8006, allocations: 51.83 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.807e-05/0.8007, allocations: 43.83 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.473e-05/0.8008, allocations: 8 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.118e-05/0.8008, allocations: 19.98 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.738e-05/0.8009, allocations: 15.92 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.63e-05/0.8009, allocations: 39.83 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002134/0.8012, allocations: 115.7 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.8012, allocations: 0 / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.113e-06/0.8012, allocations: 0 / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 9.738e-06/0.8012, allocations: 0 / 1.019 GB, free: 204 kB / 0.7637 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.0008817/0.8021, allocations: 430.9 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.8021, allocations: 12.02 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.069e-05/0.8022, allocations: 4.938 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.8024, allocations: 172.2 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.8025, allocations: 4.375 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.8025, allocations: 16.31 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002884/0.8028, allocations: 78.2 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.8028, allocations: 192 / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.8028, allocations: 3.938 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.8028, allocations: 4 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003032/0.8031, allocations: 67.92 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005902/0.8037, allocations: 336.6 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.804, allocations: 62.47 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.8041, allocations: 36.92 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.8042, allocations: 0 / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003536/0.8045, allocations: 99.34 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.8045, allocations: 4 kB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006377/0.8052, allocations: 161.4 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.8052, allocations: 51.41 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.8054, allocations: 130 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.554e-05/0.8054, allocations: 33.7 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.492e-05/0.8055, allocations: 100 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.8055, allocations: 15.75 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.613e-05/0.8056, allocations: 33.7 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000187/0.8058, allocations: 322.8 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.806, allocations: 59.89 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.8063, allocations: 86.52 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.8067, allocations: 140.1 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.8067, allocations: 4 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005471/0.8072, allocations: 211.3 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.543e-05/0.8073, allocations: 41.69 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.8073, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.8073, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.8074, allocations: 20.05 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.8074, allocations: 4.062 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002545/0.8077, allocations: 43.84 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.8077, allocations: 4 kB / 1.022 GB, free: 13.2 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.0001191/0.8079, allocations: 130.5 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.231e-05/0.8079, allocations: 0 / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.255e-05/0.8079, allocations: 20.36 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.8079, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.8079, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.8079, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.8081, allocations: 185.5 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.8081, allocations: 320 / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.8083, allocations: 19.97 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.8083, allocations: 0 / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.8083, allocations: 8 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.8083, allocations: 0 / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.8083, allocations: 4 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004318/0.8087, allocations: 152.9 kB / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.216e-05/0.8088, allocations: 81.02 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.8088, allocations: 4 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-05/0.8089, allocations: 15.97 kB / 1.022 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.059e-05/0.809, allocations: 11.98 kB / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.809, allocations: 4 kB / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.113e-05/0.8091, allocations: 98.77 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.274e-06/0.8091, allocations: 0 / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002241/0.8093, allocations: 27.94 kB / 1.023 GB, free: 12.36 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.0002254/0.8095, allocations: 103.2 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005182/0.8101, allocations: 195.2 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.8101, allocations: 96 / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.8103, allocations: 47.91 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.8105, allocations: 24.05 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003943/0.8109, allocations: 163.8 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.8113, allocations: 0.6926 MB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.861e-05/0.8113, allocations: 8 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.613e-05/0.8114, allocations: 11.44 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of SimCode: time 1.91e-07/0.8114, allocations: 0 / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of Templates: time 0.004226/0.8156, allocations: 1.406 MB / 1.025 GB, free: 9.656 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=400 -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/jenkins/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