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.001623/0.001624, allocations: 102.9 kB / 16.37 MB, free: 6.469 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.001916/0.001916, allocations: 191.8 kB / 17.31 MB, free: 5.824 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.489/1.489, allocations: 222.9 MB / 241 MB, free: 15.18 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.355/2.355, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 66.52 kB / 0.814 GB, free: 32.75 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3148, allocations: 140.4 MB / 0.9512 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.002843/0.3177, allocations: 0.786 MB / 0.9519 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001745/0.3195, allocations: 1.142 MB / 0.953 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.573e-05/0.3196, allocations: 3.938 kB / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.971e-05/0.3196, allocations: 7.875 kB / 0.953 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.985e-05/0.3197, allocations: 11.88 kB / 0.9531 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005942/0.3203, allocations: 123.7 kB / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002124/0.3206, allocations: 143.7 kB / 0.9533 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.3207, allocations: 12 kB / 0.9533 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.3208, allocations: 51.89 kB / 0.9534 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.3209, allocations: 59.8 kB / 0.9534 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.846e-05/0.321, allocations: 12 kB / 0.9534 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.995e-05/0.321, allocations: 23.98 kB / 0.9535 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.972e-05/0.3211, allocations: 11.94 kB / 0.9535 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.337e-05/0.3212, allocations: 43.84 kB / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.3214, allocations: 119.6 kB / 0.9536 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3214, allocations: 0 / 0.9536 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.184e-06/0.3214, allocations: 0 / 0.9536 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.3214, allocations: 4 kB / 0.9536 GB, free: 5.484 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.0007207/0.3222, allocations: 432.8 kB / 0.9541 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.3222, allocations: 12.03 kB / 0.9541 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.081e-05/0.3223, allocations: 4.938 kB / 0.9541 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.3224, allocations: 176 kB / 0.9542 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.3224, allocations: 4.375 kB / 0.9542 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/0.3225, allocations: 12.36 kB / 0.9543 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.3227, allocations: 78.2 kB / 0.9543 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3227, allocations: 4.188 kB / 0.9543 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.3228, allocations: 3.938 kB / 0.9543 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3228, allocations: 3.984 kB / 0.9543 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002888/0.3231, allocations: 75.86 kB / 0.9544 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004951/0.3236, allocations: 324.7 kB / 0.9547 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.3238, allocations: 54.53 kB / 0.9548 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.324, allocations: 44.92 kB / 0.9548 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.324, allocations: 4 kB / 0.9548 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002986/0.3243, allocations: 103.3 kB / 0.9549 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.3243, allocations: 0 / 0.9549 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0005759/0.3249, allocations: 157.5 kB / 0.9551 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.3249, allocations: 51.41 kB / 0.9551 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.3251, allocations: 130.1 kB / 0.9552 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.3251, allocations: 33.64 kB / 0.9553 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.455e-05/0.3252, allocations: 96.06 kB / 0.9554 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.3252, allocations: 19.75 kB / 0.9554 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.924e-05/0.3253, allocations: 29.7 kB / 0.9554 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3254, allocations: 326.7 kB / 0.9557 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.3256, allocations: 55.95 kB / 0.9558 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.3258, allocations: 86.52 kB / 0.9559 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003412/0.3262, allocations: 152.1 kB / 0.956 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3262, allocations: 0 / 0.956 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005057/0.3267, allocations: 207.1 kB / 0.9562 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.609e-05/0.3268, allocations: 41.69 kB / 0.9562 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3268, allocations: 0 / 0.9562 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.3268, allocations: 0 / 0.9562 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.3269, allocations: 20.05 kB / 0.9563 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.327, allocations: 0 / 0.9563 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.3272, allocations: 39.86 kB / 0.9563 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.3272, allocations: 11.98 kB / 0.9563 GB, free: 2.48 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.0001035/0.3273, allocations: 121.8 kB / 0.9564 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.3273, allocations: 0 / 0.9564 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.468e-05/0.3274, allocations: 16.38 kB / 0.9564 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.3274, allocations: 0 / 0.9564 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3274, allocations: 0 / 0.9564 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.3274, allocations: 3.984 kB / 0.9564 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001552/0.3276, allocations: 185.5 kB / 0.9566 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3276, allocations: 0 / 0.9566 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.876e-05/0.3277, allocations: 23.92 kB / 0.9566 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3277, allocations: 0 / 0.9566 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.3277, allocations: 4 kB / 0.9566 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3277, allocations: 320 / 0.9566 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3277, allocations: 7.984 kB / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.3281, allocations: 145 kB / 0.9568 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.403e-05/0.3282, allocations: 85 kB / 0.9569 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.3282, allocations: 0 / 0.9569 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.234e-05/0.3283, allocations: 19.98 kB / 0.9569 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.107e-05/0.3283, allocations: 7.984 kB / 0.9569 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.3284, allocations: 0 / 0.9569 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.898e-05/0.3284, allocations: 103.2 kB / 0.957 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3284, allocations: 0 / 0.957 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002252/0.3287, allocations: 20 kB / 0.957 GB, free: 1.652 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.0002119/0.3289, allocations: 103.2 kB / 0.9571 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000478/0.3294, allocations: 191.3 kB / 0.9573 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3294, allocations: 0 / 0.9573 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.3295, allocations: 51.98 kB / 0.9573 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.3298, allocations: 23.98 kB / 0.9574 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004688/0.3303, allocations: 170 kB / 0.9575 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.3306, allocations: 0.6922 MB / 0.9582 GB, free: 360 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.675e-05/0.3306, allocations: 4 kB / 0.9582 GB, free: 356 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.768e-05/0.3306, allocations: 11.44 kB / 0.9582 GB, free: 348 kB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.3307, allocations: 0 / 0.9582 GB, free: 348 kB / 0.7325 GB Notification: Performance of Templates: time 0.004389/0.335, allocations: 1.579 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 cvode -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