Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008475/0.0008476, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.006243/0.006244, allocations: 168.4 kB / 16.26 MB, free: 6.648 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.517/1.517, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.635/2.635, allocations: 437.8 MB / 0.7121 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003895/0.0003895, allocations: 16 kB / 0.8729 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7094/0.7098, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001076/0.7109, allocations: 0.514 MB / 1.024 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.7124, allocations: 1.152 MB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.7125, allocations: 4 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.337e-05/0.7125, allocations: 3.938 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.916e-05/0.7126, allocations: 7.922 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005063/0.7131, allocations: 127.6 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001523/0.7133, allocations: 111.8 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.7134, allocations: 15.98 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.7135, allocations: 51.88 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.7136, allocations: 39.83 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.499e-05/0.7137, allocations: 4 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.911e-05/0.7137, allocations: 19.98 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.615e-05/0.7138, allocations: 11.94 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.7139, allocations: 65.53 kB / 1.025 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.7141, allocations: 115.6 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.7141, allocations: 0 / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.687e-06/0.7141, allocations: 4 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.7141, allocations: 3.938 kB / 1.025 GB, free: 13.6 MB / 0.7794 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.0007388/0.7148, allocations: 412.5 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.7149, allocations: 16.03 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.559e-05/0.715, allocations: 8.844 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.7151, allocations: 176.2 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.7152, allocations: 4.375 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.7152, allocations: 4.375 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.7155, allocations: 98.19 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.7155, allocations: 192 / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.7155, allocations: 3.938 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.7155, allocations: 4 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003276/0.7159, allocations: 91.86 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005034/0.7164, allocations: 332.7 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.7166, allocations: 66.55 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.7168, allocations: 56.91 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.7168, allocations: 0 / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000292/0.7171, allocations: 115.2 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.7171, allocations: 4 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006362/0.7177, allocations: 189.6 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.7178, allocations: 51.41 kB / 1.027 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.974e-05/0.7179, allocations: 129.6 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.718, allocations: 29.7 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.639e-05/0.718, allocations: 96.05 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.7181, allocations: 19.75 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.731e-05/0.7181, allocations: 21.64 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.7182, allocations: 322.8 kB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.7185, allocations: 75.88 kB / 1.027 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.7187, allocations: 90.52 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003995/0.7191, allocations: 168.2 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7191, allocations: 0 / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005555/0.7197, allocations: 235.2 kB / 1.028 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.552e-05/0.7197, allocations: 37.7 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.7197, allocations: 7.922 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.7198, allocations: 0 / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.7199, allocations: 19.98 kB / 1.028 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.7199, allocations: 4.062 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002701/0.7202, allocations: 56.27 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.7202, allocations: 11.98 kB / 1.028 GB, free: 10.44 MB / 0.7794 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.0001033/0.7203, allocations: 125.7 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.377e-05/0.7203, allocations: 7.906 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.507e-05/0.7204, allocations: 12.38 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.7204, allocations: 4 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.7204, allocations: 0 / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.7204, allocations: 3.984 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.7206, allocations: 177.6 kB / 1.028 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.7206, allocations: 0 / 1.028 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.7207, allocations: 31.92 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.7207, allocations: 0 / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.7207, allocations: 7.984 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.7207, allocations: 0 / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7207, allocations: 0 / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004274/0.7212, allocations: 172.9 kB / 1.029 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.372e-05/0.7212, allocations: 81.02 kB / 1.029 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.7213, allocations: 4 kB / 1.029 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.15e-05/0.7214, allocations: 19.98 kB / 1.029 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.613e-05/0.7214, allocations: 7.984 kB / 1.029 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.7214, allocations: 4 kB / 1.029 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.513e-05/0.7215, allocations: 91.27 kB / 1.029 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7215, allocations: 0 / 1.029 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002238/0.7217, allocations: 28 kB / 1.029 GB, free: 9.578 MB / 0.7794 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.000225/0.722, allocations: 123.1 kB / 1.029 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000517/0.7225, allocations: 203.4 kB / 1.029 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.7225, allocations: 3.938 kB / 1.029 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001921/0.7227, allocations: 59.89 kB / 1.029 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.7229, allocations: 24.05 kB / 1.029 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003533/0.7233, allocations: 170.7 kB / 1.029 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.7236, allocations: 0.6887 MB / 1.03 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.614e-05/0.7236, allocations: 8 kB / 1.03 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.961e-05/0.7236, allocations: 15.42 kB / 1.03 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.7236, allocations: 0 / 1.03 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of Templates: time 0.003892/0.7275, allocations: 1.389 MB / 1.031 GB, free: 6.848 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches