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.001464/0.001464, allocations: 104.4 kB / 16.27 MB, free: 6.414 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.001488/0.001488, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.373/1.373, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.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.294/2.294, allocations: 390.3 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 72.83 kB / 0.8132 GB, free: 32.96 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2433, allocations: 140.4 MB / 0.9503 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.002135/0.2455, allocations: 0.7877 MB / 0.9511 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.247, allocations: 1.142 MB / 0.9522 GB, free: 6.895 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.774e-05/0.2471, allocations: 0 / 0.9522 GB, free: 6.895 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.995e-05/0.2472, allocations: 3.938 kB / 0.9522 GB, free: 6.891 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.617e-05/0.2473, allocations: 23.84 kB / 0.9522 GB, free: 6.867 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005518/0.2479, allocations: 123.8 kB / 0.9523 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001928/0.2481, allocations: 131.7 kB / 0.9524 GB, free: 6.617 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.2482, allocations: 12 kB / 0.9525 GB, free: 6.605 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.2483, allocations: 59.88 kB / 0.9525 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.112e-05/0.2484, allocations: 47.83 kB / 0.9526 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.2484, allocations: 8 kB / 0.9526 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.784e-05/0.2485, allocations: 27.98 kB / 0.9526 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.662e-05/0.2486, allocations: 11.92 kB / 0.9526 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.685e-05/0.2486, allocations: 51.77 kB / 0.9527 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.2489, allocations: 115.7 kB / 0.9528 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2489, allocations: 3.938 kB / 0.9528 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2489, allocations: 0 / 0.9528 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.2489, allocations: 0 / 0.9528 GB, free: 6.285 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.000706/0.2496, allocations: 430.5 kB / 0.9532 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2496, allocations: 8.031 kB / 0.9532 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.659e-05/0.2497, allocations: 12.94 kB / 0.9532 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.2498, allocations: 180 kB / 0.9534 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.2499, allocations: 384 / 0.9534 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.754e-05/0.2499, allocations: 8.375 kB / 0.9534 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.2501, allocations: 74.2 kB / 0.9535 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.2502, allocations: 192 / 0.9535 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.2502, allocations: 11.94 kB / 0.9535 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.2502, allocations: 4 kB / 0.9535 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003088/0.2505, allocations: 67.86 kB / 0.9535 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004414/0.251, allocations: 340.6 kB / 0.9539 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.2512, allocations: 50.55 kB / 0.9539 GB, free: 4.969 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.2513, allocations: 40.91 kB / 0.9539 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.2514, allocations: 0 / 0.9539 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00028/0.2516, allocations: 99.28 kB / 0.954 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.763e-06/0.2517, allocations: 4 kB / 0.954 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0006567/0.2523, allocations: 161.5 kB / 0.9542 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.2524, allocations: 55.41 kB / 0.9542 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.2525, allocations: 118.1 kB / 0.9544 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.2526, allocations: 33.69 kB / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.597e-05/0.2526, allocations: 96.08 kB / 0.9545 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.862e-05/0.2527, allocations: 11.75 kB / 0.9545 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.2528, allocations: 37.7 kB / 0.9545 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.253, allocations: 322.7 kB / 0.9548 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.2532, allocations: 67.94 kB / 0.9549 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/0.2535, allocations: 74.53 kB / 0.955 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004323/0.2539, allocations: 152.2 kB / 0.9551 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2539, allocations: 0 / 0.9551 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006116/0.2546, allocations: 219.5 kB / 0.9553 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.16e-05/0.2546, allocations: 33.7 kB / 0.9554 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.636e-05/0.2547, allocations: 0 / 0.9554 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.2547, allocations: 12 kB / 0.9554 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.2549, allocations: 23.98 kB / 0.9554 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.2549, allocations: 3.984 kB / 0.9554 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/0.2552, allocations: 35.86 kB / 0.9554 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.2552, allocations: 8 kB / 0.9554 GB, free: 3.281 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 0.0001341/0.2553, allocations: 125.8 kB / 0.9556 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.2554, allocations: 8 kB / 0.9556 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.89e-05/0.2554, allocations: 8.375 kB / 0.9556 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2554, allocations: 4 kB / 0.9556 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.2554, allocations: 0 / 0.9556 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2555, allocations: 0 / 0.9556 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002258/0.2557, allocations: 185.5 kB / 0.9558 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2557, allocations: 0 / 0.9558 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.2558, allocations: 23.91 kB / 0.9558 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.2558, allocations: 0 / 0.9558 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.2558, allocations: 0 / 0.9558 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2559, allocations: 4 kB / 0.9558 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2559, allocations: 0 / 0.9558 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004158/0.2563, allocations: 149 kB / 0.9559 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.18e-05/0.2564, allocations: 85.02 kB / 0.956 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.2564, allocations: 0 / 0.956 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.275e-05/0.2565, allocations: 19.97 kB / 0.956 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.539e-05/0.2566, allocations: 8 kB / 0.956 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.2566, allocations: 0 / 0.956 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.658e-05/0.2567, allocations: 95.27 kB / 0.9561 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2567, allocations: 0 / 0.9561 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002636/0.2569, allocations: 20 kB / 0.9561 GB, free: 2.465 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.0003147/0.2573, allocations: 115.2 kB / 0.9563 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005979/0.2579, allocations: 187.4 kB / 0.9564 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.2579, allocations: 11.88 kB / 0.9564 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.2581, allocations: 44.16 kB / 0.9565 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.2584, allocations: 24.17 kB / 0.9565 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006953/0.2591, allocations: 191.7 kB / 0.9567 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/0.2596, allocations: 0.6922 MB / 0.9574 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/0.2596, allocations: 19.38 kB / 0.9574 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of SimCode: time 1.9e-07/0.2596, allocations: 0 / 0.9574 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of Templates: time 0.003569/0.2632, allocations: 1.305 MB / 0.9587 GB, free: 15.81 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 -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