Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 113.1 kB / 17.6 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 186.7 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "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: 225.6 MB / 249.4 MB, free: 3.285 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.659/2.659, allocations: 443.5 MB / 0.7304 GB, free: 14.06 MB / 0.5762 GB " [Timeout remaining time 176] 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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 67.89 kB / 1.059 GB, free: 400 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3786, allocations: 160.7 MB / 1.216 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001984/0.3806, allocations: 0.7051 MB / 1.217 GB, free: 14.65 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001654/0.3822, allocations: 1.27 MB / 1.218 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.063e-05/0.3823, allocations: 0 / 1.218 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.537e-05/0.3823, allocations: 3.938 kB / 1.218 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.448e-05/0.3824, allocations: 19.84 kB / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008632/0.3833, allocations: 317.5 kB / 1.218 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000412/0.3837, allocations: 263.5 kB / 1.219 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.3838, allocations: 8.188 kB / 1.219 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.3839, allocations: 103.8 kB / 1.219 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001723/0.3841, allocations: 95.67 kB / 1.219 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.687e-05/0.3842, allocations: 24 kB / 1.219 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.3843, allocations: 36 kB / 1.219 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.665e-05/0.3843, allocations: 11.98 kB / 1.219 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.3844, allocations: 91.67 kB / 1.219 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.3847, allocations: 219.3 kB / 1.219 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3847, allocations: 4 kB / 1.219 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.854e-06/0.3847, allocations: 0 / 1.219 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.159e-05/0.3847, allocations: 0 / 1.219 GB, free: 12.2 MB / 0.9669 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.0006426/0.3854, allocations: 492.2 kB / 1.22 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3854, allocations: 8.031 kB / 1.22 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.593e-05/0.3855, allocations: 24.88 kB / 1.22 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.3856, allocations: 176.3 kB / 1.22 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.487e-05/0.3857, allocations: 12.38 kB / 1.22 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.3857, allocations: 16.38 kB / 1.22 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.3858, allocations: 58.17 kB / 1.22 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.3858, allocations: 7.922 kB / 1.22 GB, free: 11.31 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.3859, allocations: 4 kB / 1.22 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3859, allocations: 0 / 1.22 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.298e-05/0.3859, allocations: 16 kB / 1.22 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005947/0.3865, allocations: 416.5 kB / 1.22 GB, free: 10.83 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.651e-05/0.3866, allocations: 38.5 kB / 1.22 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.634e-05/0.3866, allocations: 20.8 kB / 1.22 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.3866, allocations: 0 / 1.22 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001709/0.3868, allocations: 103.5 kB / 1.221 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 3.577e-06/0.3868, allocations: 4 kB / 1.221 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0003158/0.3871, allocations: 137.8 kB / 1.221 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.3872, allocations: 59.41 kB / 1.221 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.3873, allocations: 136.8 kB / 1.221 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.772e-05/0.3873, allocations: 37.64 kB / 1.221 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.781e-05/0.3874, allocations: 100.1 kB / 1.221 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.3874, allocations: 19.86 kB / 1.221 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.3876, allocations: 65.67 kB / 1.221 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.3877, allocations: 330.8 kB / 1.221 GB, free: 9.727 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.3879, allocations: 83.95 kB / 1.221 GB, free: 9.645 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.3881, allocations: 134 kB / 1.222 GB, free: 9.492 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/0.3884, allocations: 239 kB / 1.222 GB, free: 9.219 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3884, allocations: 0 / 1.222 GB, free: 9.219 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006695/0.3891, allocations: 382.3 kB / 1.222 GB, free: 8.824 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.939e-05/0.3892, allocations: 105.3 kB / 1.222 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.3892, allocations: 4 kB / 1.222 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.3892, allocations: 7.984 kB / 1.222 GB, free: 8.691 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.391e-05/0.3893, allocations: 4 kB / 1.222 GB, free: 8.688 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.3893, allocations: 3.938 kB / 1.222 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000528/0.3898, allocations: 83.8 kB / 1.222 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.755e-05/0.3898, allocations: 19.98 kB / 1.222 GB, free: 8.582 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001303/0.39, allocations: 133.8 kB / 1.223 GB, free: 8.441 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.424e-05/0.39, allocations: 7.953 kB / 1.223 GB, free: 8.434 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.275e-05/0.39, allocations: 12.38 kB / 1.223 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.39, allocations: 0 / 1.223 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.39, allocations: 0 / 1.223 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.39, allocations: 0 / 1.223 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.3902, allocations: 197.5 kB / 1.223 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3902, allocations: 0 / 1.223 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.618e-06/0.3902, allocations: 4 kB / 1.223 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.3902, allocations: 0 / 1.223 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.3902, allocations: 7.938 kB / 1.223 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.3902, allocations: 0 / 1.223 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.3902, allocations: 7.938 kB / 1.223 GB, free: 8.156 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002732/0.3905, allocations: 144.9 kB / 1.223 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-05/0.3906, allocations: 85 kB / 1.223 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.3906, allocations: 4 kB / 1.223 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.339e-05/0.3906, allocations: 7.984 kB / 1.223 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.802e-05/0.3907, allocations: 8.094 kB / 1.223 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.3907, allocations: 11.92 kB / 1.223 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.093e-05/0.3907, allocations: 99.27 kB / 1.223 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of sort global known variables: time 6e-08/0.3907, allocations: 0 / 1.223 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002578/0.391, allocations: 39.95 kB / 1.223 GB, free: 7.727 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001855/0.3912, allocations: 111.2 kB / 1.223 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004734/0.3917, allocations: 330 kB / 1.224 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3917, allocations: 0 / 1.224 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.942e-05/0.3917, allocations: 31.98 kB / 1.224 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.392, allocations: 26.16 kB / 1.224 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004034/0.3924, allocations: 195.1 kB / 1.224 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003252/0.3927, allocations: 0.6963 MB / 1.225 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.083e-05/0.3928, allocations: 12.42 kB / 1.225 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.183e-05/0.3928, allocations: 15.44 kB / 1.225 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of SimCode: time 4.41e-07/0.3928, allocations: 0 / 1.225 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of Templates: time 0.005684/0.3985, allocations: 2.646 MB / 1.227 GB, free: 3.602 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.597509509883821]