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.001087/0.001087, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001272/0.001272, allocations: 177.3 kB / 15.95 MB, free: 216 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.32/1.32, allocations: 223.2 MB / 239.9 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.274/2.274, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000325/0.000325, allocations: 8 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.616/0.6163, allocations: 142.3 MB / 0.9535 GB, free: 8.328 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.0008335/0.6172, allocations: 497.1 kB / 0.954 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00107/0.6183, allocations: 1.1 MB / 0.9551 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.885e-05/0.6183, allocations: 5.625 kB / 0.9551 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.445e-05/0.6184, allocations: 3.938 kB / 0.9551 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.221e-05/0.6184, allocations: 18.52 kB / 0.9551 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003747/0.6188, allocations: 111.4 kB / 0.9552 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.64e-05/0.6189, allocations: 60.67 kB / 0.9553 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.514e-05/0.619, allocations: 18.39 kB / 0.9553 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.041e-05/0.6191, allocations: 47.8 kB / 0.9553 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.99e-05/0.6192, allocations: 36.77 kB / 0.9554 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.107e-05/0.6192, allocations: 9.844 kB / 0.9554 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.415e-05/0.6193, allocations: 18.3 kB / 0.9554 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.834e-05/0.6193, allocations: 14.89 kB / 0.9554 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.907e-05/0.6193, allocations: 32.8 kB / 0.9554 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.6194, allocations: 78.56 kB / 0.9555 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.6194, allocations: 1.125 kB / 0.9555 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.6195, allocations: 0 / 0.9555 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.6195, allocations: 4 kB / 0.9555 GB, free: 6.758 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.000483/0.62, allocations: 419.3 kB / 0.9559 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.62, allocations: 8.188 kB / 0.9559 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.419e-05/0.62, allocations: 13.95 kB / 0.9559 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.03e-05/0.6201, allocations: 174.7 kB / 0.9561 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.6202, allocations: 7.156 kB / 0.9561 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.6202, allocations: 10.41 kB / 0.9561 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002414/0.6204, allocations: 91.11 kB / 0.9562 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.423e-06/0.6204, allocations: 5.172 kB / 0.9562 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.6205, allocations: 0 / 0.9562 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.6205, allocations: 5.062 kB / 0.9562 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003142/0.6208, allocations: 97.47 kB / 0.9563 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003567/0.6212, allocations: 330.7 kB / 0.9566 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001844/0.6213, allocations: 61.11 kB / 0.9567 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.6214, allocations: 1.219 kB / 0.9567 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/0.6217, allocations: 113.3 kB / 0.9568 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.323e-06/0.6217, allocations: 0 / 0.9568 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005905/0.6223, allocations: 200.1 kB / 0.957 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.193e-05/0.6223, allocations: 56.61 kB / 0.957 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.517e-05/0.6224, allocations: 122.7 kB / 0.9572 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.6224, allocations: 32.36 kB / 0.9572 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.851e-05/0.6225, allocations: 96.09 kB / 0.9573 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.6225, allocations: 10.16 kB / 0.9573 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.6225, allocations: 6.344 kB / 0.9573 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.186e-05/0.6225, allocations: 315.9 kB / 0.9576 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.6228, allocations: 73.95 kB / 0.9577 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.623, allocations: 87.55 kB / 0.9578 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.6232, allocations: 106.5 kB / 0.9579 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.6232, allocations: 0 / 0.9579 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004926/0.6237, allocations: 235.7 kB / 0.9581 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.6237, allocations: 35.8 kB / 0.9581 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.6238, allocations: 5.359 kB / 0.9581 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.6238, allocations: 9.094 kB / 0.9581 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.6239, allocations: 20.33 kB / 0.9581 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.6239, allocations: 5.391 kB / 0.9582 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002457/0.6242, allocations: 56.61 kB / 0.9582 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.028e-05/0.6242, allocations: 5.375 kB / 0.9582 GB, free: 4.438 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 6.445e-05/0.6243, allocations: 119.2 kB / 0.9583 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/0.6243, allocations: 3.625 kB / 0.9583 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.488e-05/0.6243, allocations: 10.16 kB / 0.9583 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.6243, allocations: 7.891 kB / 0.9583 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.6243, allocations: 5.781 kB / 0.9584 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.6243, allocations: 0 / 0.9584 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.099e-05/0.6244, allocations: 182.1 kB / 0.9585 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.6244, allocations: 0 / 0.9585 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.973e-05/0.6245, allocations: 27.12 kB / 0.9586 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.6246, allocations: 1.344 kB / 0.9586 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.6246, allocations: 0 / 0.9586 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.6246, allocations: 1.312 kB / 0.9586 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.6246, allocations: 7.953 kB / 0.9586 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003607/0.6249, allocations: 171.8 kB / 0.9587 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.011e-05/0.625, allocations: 82.39 kB / 0.9588 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.625, allocations: 1.75 kB / 0.9588 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/0.6251, allocations: 20.34 kB / 0.9588 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.6251, allocations: 14.7 kB / 0.9588 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.6251, allocations: 5.375 kB / 0.9588 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.315e-05/0.6252, allocations: 96.89 kB / 0.9589 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6252, allocations: 1.375 kB / 0.9589 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002378/0.6254, allocations: 23.23 kB / 0.959 GB, free: 3.734 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.0001334/0.6256, allocations: 107.8 kB / 0.9591 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004654/0.626, allocations: 208.8 kB / 0.9593 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.6261, allocations: 0 / 0.9593 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001824/0.6262, allocations: 61.72 kB / 0.9593 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001632/0.6264, allocations: 10.8 kB / 0.9593 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002917/0.6267, allocations: 175.9 kB / 0.9595 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001058/0.6268, allocations: 0.6958 MB / 0.9602 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.556e-05/0.6269, allocations: 3.469 kB / 0.9602 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.464e-05/0.6269, allocations: 10.25 kB / 0.9602 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of SimCode: time 1.9e-07/0.6269, allocations: 0 / 0.9602 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of Templates: time 0.003567/0.6305, allocations: 1.344 MB / 0.9615 GB, free: 1.93 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches