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.001494/0.001494, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 192.8 kB / 16.53 MB, free: 6.664 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.549/1.549, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.577/2.577, allocations: 390.2 MB / 0.6646 GB, free: 280 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.84 kB / 0.8125 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9172/0.9185, allocations: 140.4 MB / 0.9496 GB, free: 9.434 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.002148/0.9207, allocations: 0.7809 MB / 0.9504 GB, free: 8.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001233/0.9219, allocations: 1.132 MB / 0.9515 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.14e-05/0.922, allocations: 1.188 kB / 0.9515 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.902e-05/0.922, allocations: 7.922 kB / 0.9515 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.334e-05/0.9221, allocations: 10.53 kB / 0.9515 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.9226, allocations: 131.7 kB / 0.9516 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000165/0.9227, allocations: 140.9 kB / 0.9518 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.9229, allocations: 19.34 kB / 0.9518 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.901e-05/0.923, allocations: 49.91 kB / 0.9518 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.627e-05/0.9231, allocations: 51.03 kB / 0.9519 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.411e-05/0.9231, allocations: 10.97 kB / 0.9519 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.657e-05/0.9232, allocations: 25.67 kB / 0.9519 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.424e-05/0.9232, allocations: 10.3 kB / 0.9519 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.441e-05/0.9233, allocations: 48.47 kB / 0.952 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.9235, allocations: 117.8 kB / 0.9521 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.9235, allocations: 0 / 0.9521 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.514e-06/0.9235, allocations: 0 / 0.9521 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.9235, allocations: 5.156 kB / 0.9521 GB, free: 7.504 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.0006253/0.9241, allocations: 426 kB / 0.9525 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.9242, allocations: 13.66 kB / 0.9525 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.858e-05/0.9243, allocations: 9.969 kB / 0.9525 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.527e-05/0.9243, allocations: 172.1 kB / 0.9527 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.9244, allocations: 3.25 kB / 0.9527 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.9244, allocations: 10.69 kB / 0.9527 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.9246, allocations: 78.73 kB / 0.9528 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.9247, allocations: 4.188 kB / 0.9528 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.9247, allocations: 4.594 kB / 0.9528 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.9247, allocations: 1.188 kB / 0.9528 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002904/0.925, allocations: 70.3 kB / 0.9528 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003801/0.9254, allocations: 338.1 kB / 0.9532 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.9256, allocations: 49.08 kB / 0.9532 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.9257, allocations: 45.06 kB / 0.9532 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.9258, allocations: 0 / 0.9532 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002883/0.926, allocations: 106 kB / 0.9533 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.9261, allocations: 0 / 0.9533 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005782/0.9266, allocations: 159 kB / 0.9535 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.9267, allocations: 56.34 kB / 0.9536 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.281e-05/0.9268, allocations: 130.9 kB / 0.9537 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.9268, allocations: 27.11 kB / 0.9537 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.655e-05/0.9268, allocations: 88.3 kB / 0.9538 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.9269, allocations: 18.55 kB / 0.9538 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.484e-05/0.9269, allocations: 31.3 kB / 0.9538 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.531e-05/0.927, allocations: 319.8 kB / 0.9541 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.9272, allocations: 64.31 kB / 0.9542 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.9274, allocations: 85.61 kB / 0.9543 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/0.9278, allocations: 141.6 kB / 0.9544 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.9278, allocations: 0 / 0.9544 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005106/0.9283, allocations: 208.4 kB / 0.9546 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.811e-05/0.9283, allocations: 36.89 kB / 0.9547 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.9284, allocations: 0 / 0.9547 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.9284, allocations: 5.469 kB / 0.9547 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.9285, allocations: 22.84 kB / 0.9547 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.9285, allocations: 5.062 kB / 0.9547 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.9288, allocations: 34.83 kB / 0.9547 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.473e-05/0.9288, allocations: 13.27 kB / 0.9547 GB, free: 5.113 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 7.666e-05/0.9289, allocations: 123.9 kB / 0.9548 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.9289, allocations: 10.44 kB / 0.9549 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.928e-05/0.929, allocations: 10.78 kB / 0.9549 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.929, allocations: 1.219 kB / 0.9549 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.929, allocations: 4 kB / 0.9549 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.929, allocations: 96 / 0.9549 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.9291, allocations: 190.8 kB / 0.9551 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.9291, allocations: 0 / 0.9551 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.9292, allocations: 19.39 kB / 0.9551 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.9292, allocations: 0 / 0.9551 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.9292, allocations: 5.438 kB / 0.9551 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.9293, allocations: 3.938 kB / 0.9551 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.9293, allocations: 0 / 0.9551 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003697/0.9296, allocations: 148.8 kB / 0.9552 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.606e-05/0.9297, allocations: 83.02 kB / 0.9553 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.04e-05/0.9297, allocations: 8.922 kB / 0.9553 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-05/0.9298, allocations: 15.48 kB / 0.9553 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.9298, allocations: 6.641 kB / 0.9553 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.9298, allocations: 1.281 kB / 0.9553 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.508e-05/0.9299, allocations: 99.52 kB / 0.9554 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9299, allocations: 0 / 0.9554 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002288/0.9301, allocations: 20.03 kB / 0.9554 GB, free: 4.418 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.0001778/0.9303, allocations: 108.9 kB / 0.9556 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000503/0.9308, allocations: 188.7 kB / 0.9557 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.9309, allocations: 1.156 kB / 0.9557 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.9311, allocations: 51.11 kB / 0.9558 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002665/0.9313, allocations: 24.52 kB / 0.9558 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000428/0.9318, allocations: 157.2 kB / 0.956 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001293/0.9319, allocations: 0.6921 MB / 0.9566 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.834e-05/0.932, allocations: 11.31 kB / 0.9566 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.776e-05/0.932, allocations: 10.72 kB / 0.9567 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of SimCode: time 8.72e-07/0.932, allocations: 0 / 0.9567 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of Templates: time 0.004174/0.9362, allocations: 1.584 MB / 0.9582 GB, free: 2.484 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