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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001092/0.001092, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001496/0.001496, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.567/2.567, allocations: 390.9 MB / 0.666 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003456/0.0003457, allocations: 12 kB / 0.8154 GB, free: 13.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7905/0.7909, allocations: 142.4 MB / 0.9545 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.0009697/0.7919, allocations: 0.4943 MB / 0.9549 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.7932, allocations: 1.113 MB / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.671e-05/0.7933, allocations: 1.156 kB / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.469e-05/0.7933, allocations: 3.938 kB / 0.956 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.356e-05/0.7934, allocations: 17.73 kB / 0.9561 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004176/0.7938, allocations: 110.3 kB / 0.9562 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.7939, allocations: 104.4 kB / 0.9563 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.913e-05/0.794, allocations: 5.5 kB / 0.9563 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.964e-05/0.7941, allocations: 53.91 kB / 0.9563 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.947e-05/0.7942, allocations: 38.73 kB / 0.9564 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.7942, allocations: 5.875 kB / 0.9564 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.383e-05/0.7943, allocations: 16.73 kB / 0.9564 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.025e-05/0.7943, allocations: 13.72 kB / 0.9564 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.02e-05/0.7944, allocations: 37.45 kB / 0.9564 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001156/0.7945, allocations: 82.23 kB / 0.9565 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.7945, allocations: 0 / 0.9565 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.883e-06/0.7945, allocations: 5.156 kB / 0.9565 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.7945, allocations: 0 / 0.9565 GB, free: 6.195 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.0006091/0.7952, allocations: 422.5 kB / 0.9569 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.7952, allocations: 9.312 kB / 0.9569 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.211e-05/0.7953, allocations: 13.2 kB / 0.9569 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.296e-05/0.7954, allocations: 171.8 kB / 0.9571 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.7954, allocations: 3.5 kB / 0.9571 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.7954, allocations: 4.844 kB / 0.9571 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.7957, allocations: 92.52 kB / 0.9572 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.7957, allocations: 0 / 0.9572 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.7957, allocations: 1.062 kB / 0.9572 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.7957, allocations: 0.9375 kB / 0.9572 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002792/0.796, allocations: 101.5 kB / 0.9573 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000396/0.7964, allocations: 330.9 kB / 0.9576 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.7966, allocations: 65.19 kB / 0.9577 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.7967, allocations: 56.09 kB / 0.9577 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.7968, allocations: 0 / 0.9577 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.797, allocations: 117 kB / 0.9578 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.797, allocations: 2.125 kB / 0.9578 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.00059/0.7976, allocations: 189.7 kB / 0.958 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.7977, allocations: 52.41 kB / 0.9581 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.024e-05/0.7978, allocations: 130.6 kB / 0.9582 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.7978, allocations: 32.12 kB / 0.9582 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.218e-05/0.7979, allocations: 93.14 kB / 0.9583 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.7979, allocations: 13.5 kB / 0.9583 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.437e-05/0.7979, allocations: 2.75 kB / 0.9583 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.731e-05/0.798, allocations: 320.2 kB / 0.9586 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/0.7982, allocations: 73.3 kB / 0.9587 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.7984, allocations: 90.89 kB / 0.9588 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.7987, allocations: 99.84 kB / 0.9589 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.7987, allocations: 0 / 0.9589 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005287/0.7992, allocations: 238.1 kB / 0.9591 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.464e-05/0.7993, allocations: 41.78 kB / 0.9591 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.7993, allocations: 4.062 kB / 0.9592 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.7993, allocations: 1.281 kB / 0.9592 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.7995, allocations: 25.16 kB / 0.9592 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.7995, allocations: 1.969 kB / 0.9592 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.7997, allocations: 56.58 kB / 0.9592 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.7998, allocations: 9.047 kB / 0.9592 GB, free: 3.855 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,$PRE.booPul.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.869e-05/0.7999, allocations: 127.9 kB / 0.9594 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/0.7999, allocations: 2.75 kB / 0.9594 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.734e-05/0.7999, allocations: 14.36 kB / 0.9594 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.7999, allocations: 5.156 kB / 0.9594 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.8, allocations: 0 / 0.9594 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.8, allocations: 0 / 0.9594 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.8001, allocations: 186.2 kB / 0.9596 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.8001, allocations: 1.375 kB / 0.9596 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.899e-05/0.8002, allocations: 19.42 kB / 0.9596 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.8002, allocations: 1.375 kB / 0.9596 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.8002, allocations: 4 kB / 0.9596 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.8003, allocations: 9.328 kB / 0.9596 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.8003, allocations: 0 / 0.9596 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003832/0.8006, allocations: 171.2 kB / 0.9598 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.526e-05/0.8007, allocations: 87.75 kB / 0.9598 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.8007, allocations: 0 / 0.9598 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.1e-05/0.8008, allocations: 16.36 kB / 0.9599 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.435e-05/0.8009, allocations: 18.69 kB / 0.9599 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.8009, allocations: 6.688 kB / 0.9599 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.046e-05/0.8009, allocations: 99.14 kB / 0.96 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8009, allocations: 0 / 0.96 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000232/0.8012, allocations: 23.25 kB / 0.96 GB, free: 3.148 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002336/0.8014, allocations: 105 kB / 0.9601 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005124/0.8019, allocations: 211.4 kB / 0.9603 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.8019, allocations: 0 / 0.9603 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001878/0.8021, allocations: 61.2 kB / 0.9604 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002389/0.8024, allocations: 14.86 kB / 0.9604 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003908/0.8028, allocations: 172.7 kB / 0.9605 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.803, allocations: 0.6882 MB / 0.9612 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.429e-05/0.8031, allocations: 3.188 kB / 0.9612 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.602e-05/0.8031, allocations: 14.38 kB / 0.9612 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.8031, allocations: 4 kB / 0.9612 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of Templates: time 0.004117/0.8072, allocations: 1.343 MB / 0.9625 GB, free: 1.336 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