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.001317/0.001317, allocations: 104.4 kB / 16.35 MB, free: 5.828 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.00126/0.00126, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.414/1.414, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.243/2.243, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001884, allocations: 69.28 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3229, allocations: 140.4 MB / 0.9511 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.002433/0.3254, allocations: 0.8041 MB / 0.9519 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001605/0.327, allocations: 1.134 MB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.017e-05/0.3271, allocations: 0 / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.8e-05/0.3272, allocations: 3.938 kB / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.862e-05/0.3272, allocations: 7.875 kB / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004751/0.3277, allocations: 139.2 kB / 0.9532 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002287/0.328, allocations: 143.7 kB / 0.9533 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.3281, allocations: 19.98 kB / 0.9533 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.3282, allocations: 47.91 kB / 0.9534 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.3283, allocations: 55.8 kB / 0.9534 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.3283, allocations: 8 kB / 0.9534 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.48e-05/0.3284, allocations: 27.98 kB / 0.9535 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.688e-05/0.3284, allocations: 11.92 kB / 0.9535 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.87e-05/0.3285, allocations: 43.84 kB / 0.9535 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002538/0.3288, allocations: 123.6 kB / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3288, allocations: 0 / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3288, allocations: 0 / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.929e-06/0.3288, allocations: 0 / 0.9536 GB, free: 5.492 MB / 0.7325 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.0006971/0.3295, allocations: 432.8 kB / 0.954 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3295, allocations: 8.031 kB / 0.954 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.438e-05/0.3296, allocations: 8.938 kB / 0.9541 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.3297, allocations: 176.2 kB / 0.9542 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.3298, allocations: 8.375 kB / 0.9542 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.386e-05/0.3298, allocations: 4.375 kB / 0.9542 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002392/0.3301, allocations: 78.2 kB / 0.9543 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3301, allocations: 192 / 0.9543 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.3301, allocations: 3.938 kB / 0.9543 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-06/0.3301, allocations: 4 kB / 0.9543 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002718/0.3304, allocations: 71.86 kB / 0.9544 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004512/0.3308, allocations: 332.7 kB / 0.9547 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001788/0.331, allocations: 50.53 kB / 0.9548 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.3312, allocations: 44.91 kB / 0.9548 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.3312, allocations: 3.984 kB / 0.9548 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.3315, allocations: 99.38 kB / 0.9549 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.482e-06/0.3315, allocations: 3.938 kB / 0.9549 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0005845/0.3321, allocations: 165.5 kB / 0.9551 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.3321, allocations: 59.39 kB / 0.9551 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.3322, allocations: 121.8 kB / 0.9552 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.3323, allocations: 29.7 kB / 0.9553 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.166e-05/0.3323, allocations: 96.12 kB / 0.9554 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.3323, allocations: 15.69 kB / 0.9554 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.234e-05/0.3324, allocations: 37.7 kB / 0.9554 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.3326, allocations: 322.7 kB / 0.9557 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.3328, allocations: 63.95 kB / 0.9558 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.333, allocations: 78.52 kB / 0.9558 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.3333, allocations: 148.1 kB / 0.956 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3333, allocations: 0 / 0.956 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004799/0.3338, allocations: 207.1 kB / 0.9562 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.758e-05/0.3339, allocations: 37.69 kB / 0.9562 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.3339, allocations: 4.062 kB / 0.9562 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.334, allocations: 4 kB / 0.9562 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.3341, allocations: 16.3 kB / 0.9562 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.3341, allocations: 4.062 kB / 0.9562 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/0.3343, allocations: 55.84 kB / 0.9563 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.3344, allocations: 4 kB / 0.9563 GB, free: 2.484 MB / 0.7325 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.774e-05/0.3345, allocations: 121.8 kB / 0.9564 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.365e-05/0.3345, allocations: 4 kB / 0.9564 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.36e-05/0.3345, allocations: 12.36 kB / 0.9564 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.3345, allocations: 4 kB / 0.9564 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.3345, allocations: 0 / 0.9564 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3345, allocations: 0 / 0.9564 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.3347, allocations: 189.5 kB / 0.9566 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3347, allocations: 0 / 0.9566 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.3348, allocations: 19.92 kB / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.3348, allocations: 3.984 kB / 0.9566 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.3348, allocations: 4 kB / 0.9566 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3348, allocations: 0 / 0.9566 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3348, allocations: 0 / 0.9566 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003414/0.3352, allocations: 145 kB / 0.9568 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.3353, allocations: 89.02 kB / 0.9569 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.3354, allocations: 4 kB / 0.9569 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.451e-05/0.3354, allocations: 11.98 kB / 0.9569 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.3355, allocations: 8.078 kB / 0.9569 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.3355, allocations: 7.938 kB / 0.9569 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.076e-05/0.3356, allocations: 95.27 kB / 0.957 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3356, allocations: 0 / 0.957 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002183/0.3358, allocations: 20 kB / 0.957 GB, free: 1.66 MB / 0.7325 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.0003053/0.3361, allocations: 119.1 kB / 0.9571 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004662/0.3366, allocations: 175.3 kB / 0.9573 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3366, allocations: 4 kB / 0.9573 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.3368, allocations: 47.89 kB / 0.9573 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.337, allocations: 24.36 kB / 0.9574 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000427/0.3375, allocations: 174 kB / 0.9575 GB, free: 1.074 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.3379, allocations: 0.6941 MB / 0.9582 GB, free: 364 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.32e-05/0.3379, allocations: 4 kB / 0.9582 GB, free: 360 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.771e-05/0.3379, allocations: 15.44 kB / 0.9582 GB, free: 348 kB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.3379, allocations: 0 / 0.9582 GB, free: 348 kB / 0.7325 GB Notification: Performance of Templates: time 0.004445/0.3424, allocations: 1.56 MB / 0.9598 GB, free: 14.79 MB / 0.7481 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 -s gbode -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/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