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.001405/0.001405, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001411/0.001411, allocations: 189.3 kB / 16.25 MB, free: 6.633 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.9 MB, free: 4.523 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.425/2.425, allocations: 390.2 MB / 0.6643 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001343, allocations: 63.91 kB / 0.8121 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8262/0.8276, allocations: 140.4 MB / 0.9491 GB, free: 9.402 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.002679/0.8303, allocations: 0.8528 MB / 0.95 GB, free: 8.746 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.832, allocations: 1.129 MB / 0.9511 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.979e-05/0.8321, allocations: 0 / 0.9511 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.04e-05/0.8321, allocations: 5.406 kB / 0.9511 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.098e-05/0.8323, allocations: 5.25 kB / 0.9511 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004831/0.8327, allocations: 122.2 kB / 0.9512 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001678/0.8329, allocations: 129.5 kB / 0.9513 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.833, allocations: 18.84 kB / 0.9513 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.78e-05/0.8331, allocations: 53.91 kB / 0.9514 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.022e-05/0.8332, allocations: 46.81 kB / 0.9514 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.8333, allocations: 11 kB / 0.9514 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.81e-05/0.8333, allocations: 29.72 kB / 0.9515 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.304e-05/0.8334, allocations: 14.53 kB / 0.9515 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.553e-05/0.8334, allocations: 52.34 kB / 0.9515 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.8336, allocations: 113.6 kB / 0.9516 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.8336, allocations: 0 / 0.9516 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.863e-06/0.8336, allocations: 1.312 kB / 0.9516 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.104e-06/0.8336, allocations: 0 / 0.9516 GB, free: 7.453 MB / 0.7169 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.0006196/0.8343, allocations: 430.2 kB / 0.952 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.8343, allocations: 8.688 kB / 0.9521 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.681e-05/0.8344, allocations: 10.88 kB / 0.9521 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.48e-05/0.8345, allocations: 171.5 kB / 0.9522 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.8345, allocations: 7.875 kB / 0.9522 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.806e-05/0.8345, allocations: 6.062 kB / 0.9522 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002472/0.8348, allocations: 87.5 kB / 0.9523 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.8348, allocations: 192 / 0.9523 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.8348, allocations: 5.562 kB / 0.9523 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.8348, allocations: 0 / 0.9523 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002849/0.8351, allocations: 70.86 kB / 0.9524 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004367/0.8356, allocations: 333.7 kB / 0.9527 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.8358, allocations: 57.06 kB / 0.9528 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.8359, allocations: 44.64 kB / 0.9528 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.836, allocations: 1.25 kB / 0.9528 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003318/0.8363, allocations: 95.59 kB / 0.9529 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.8363, allocations: 0 / 0.9529 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0006182/0.8369, allocations: 171 kB / 0.9531 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/0.837, allocations: 52.59 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.507e-05/0.8371, allocations: 129 kB / 0.9532 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.8371, allocations: 26.86 kB / 0.9533 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.116e-05/0.8372, allocations: 92.36 kB / 0.9534 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.8372, allocations: 14.28 kB / 0.9534 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.441e-05/0.8373, allocations: 39.81 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.637e-05/0.8373, allocations: 316.1 kB / 0.9537 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.8376, allocations: 68.72 kB / 0.9538 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002193/0.8378, allocations: 76.17 kB / 0.9538 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003635/0.8382, allocations: 149.8 kB / 0.954 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.8382, allocations: 1.5 kB / 0.954 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000505/0.8387, allocations: 211 kB / 0.9542 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.8387, allocations: 37.14 kB / 0.9542 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.8387, allocations: 4.078 kB / 0.9542 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.8388, allocations: 9.172 kB / 0.9542 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.8389, allocations: 15.98 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.8389, allocations: 1.344 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.8392, allocations: 43.02 kB / 0.9543 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.722e-05/0.8392, allocations: 8.297 kB / 0.9543 GB, free: 5.047 MB / 0.7169 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 9.424e-05/0.8393, allocations: 131.4 kB / 0.9544 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.489e-05/0.8393, allocations: 6.656 kB / 0.9544 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.13e-05/0.8393, allocations: 10.81 kB / 0.9544 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.8394, allocations: 5.156 kB / 0.9544 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.8394, allocations: 0 / 0.9544 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.8394, allocations: 0 / 0.9544 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.8395, allocations: 186.3 kB / 0.9546 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.8395, allocations: 0 / 0.9546 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.795e-05/0.8396, allocations: 15.3 kB / 0.9546 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.8396, allocations: 5.125 kB / 0.9546 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.8396, allocations: 0 / 0.9546 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.8396, allocations: 1.125 kB / 0.9546 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.8397, allocations: 0 / 0.9546 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004492/0.8401, allocations: 153.6 kB / 0.9548 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.08e-05/0.8402, allocations: 90.22 kB / 0.9549 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.8402, allocations: 1.031 kB / 0.9549 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.55e-05/0.8403, allocations: 11.08 kB / 0.9549 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.801e-05/0.8404, allocations: 10.39 kB / 0.9549 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.8404, allocations: 6.562 kB / 0.9549 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.206e-05/0.8405, allocations: 93.52 kB / 0.955 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8405, allocations: 0 / 0.955 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002444/0.8407, allocations: 20.09 kB / 0.955 GB, free: 4.355 MB / 0.7169 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.0002996/0.841, allocations: 108.3 kB / 0.9551 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005742/0.8416, allocations: 192.8 kB / 0.9553 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.8416, allocations: 1.031 kB / 0.9553 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.8418, allocations: 51.86 kB / 0.9554 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.8421, allocations: 15.02 kB / 0.9554 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004287/0.8425, allocations: 172.7 kB / 0.9555 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001553/0.8427, allocations: 0.6972 MB / 0.9562 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.986e-05/0.8427, allocations: 5.781 kB / 0.9562 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.769e-05/0.8428, allocations: 14.97 kB / 0.9562 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8428, allocations: 0 / 0.9562 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of Templates: time 0.004465/0.8472, allocations: 1.462 MB / 0.9577 GB, free: 2.469 MB / 0.7169 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