Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002295/0.002295, allocations: 83.69 kB / 20.23 MB, free: 4.184 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002654/0.002654, allocations: 157.3 kB / 23.55 MB, free: 0.8672 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.621/1.621, allocations: 177.1 MB / 203.9 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.036/3.036, allocations: 377.8 MB / 0.6232 GB, free: 8.535 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 0.8109 GB, free: 2.047 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.191e-05/3.4e-05, allocations: 4.703 kB / 0.8109 GB, free: 2.043 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002/0.002034, allocations: 0.7962 MB / 0.8117 GB, free: 1.27 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001786/0.00382, allocations: 1.171 MB / 0.8128 GB, free: 88 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.615e-05/0.003866, allocations: 1.281 kB / 0.8128 GB, free: 88 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.595e-05/0.003892, allocations: 3.938 kB / 0.8128 GB, free: 84 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 9.172e-05/0.003984, allocations: 15.81 kB / 0.8128 GB, free: 68 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004996/0.004483, allocations: 137.5 kB / 0.8129 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000214/0.004697, allocations: 131.7 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 8.163e-05/0.004779, allocations: 8 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.004933, allocations: 73.39 kB / 0.8132 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001019/0.005035, allocations: 39.95 kB / 0.8132 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.157e-05/0.005066, allocations: 11.94 kB / 0.8132 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.702e-05/0.005143, allocations: 31.91 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.562e-05/0.005169, allocations: 9.328 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 7.047e-05/0.005239, allocations: 39.91 kB / 0.8133 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002485/0.005488, allocations: 139.6 kB / 0.8134 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.00549, allocations: 1.594 kB / 0.8134 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.11e-07/0.005491, allocations: 0 / 0.8134 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.017e-06/0.005495, allocations: 0 / 0.8134 GB, free: 15.46 MB / 0.7761 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.000697/0.006192, allocations: 437.8 kB / 0.8138 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.006226, allocations: 10.16 kB / 0.8138 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.677e-05/0.006293, allocations: 16.89 kB / 0.8139 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.006435, allocations: 127.7 kB / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.006453, allocations: 4.375 kB / 0.814 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.389e-05/0.006477, allocations: 8.375 kB / 0.814 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.006685, allocations: 66.75 kB / 0.8141 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.006694, allocations: 0.9062 kB / 0.8141 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.006709, allocations: 4.375 kB / 0.8141 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.006713, allocations: 0.9062 kB / 0.8141 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/0.006908, allocations: 49.47 kB / 0.8141 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005104/0.007418, allocations: 319.6 kB / 0.8144 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.007571, allocations: 47.58 kB / 0.8145 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.007681, allocations: 37.06 kB / 0.8145 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.007709, allocations: 11.98 kB / 0.8145 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002252/0.007935, allocations: 90.12 kB / 0.8146 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.007936, allocations: 0 / 0.8146 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0004836/0.008419, allocations: 134.9 kB / 0.8147 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/0.008469, allocations: 55.41 kB / 0.8148 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.008636, allocations: 185.9 kB / 0.8149 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.87e-05/0.008665, allocations: 30.67 kB / 0.815 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.008781, allocations: 146.8 kB / 0.8151 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.008803, allocations: 11.91 kB / 0.8151 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.327e-05/0.008896, allocations: 44.08 kB / 0.8152 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0004965/0.009393, allocations: 0.4884 MB / 0.8156 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.009595, allocations: 86.73 kB / 0.8157 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.009825, allocations: 125.4 kB / 0.8159 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.01012, allocations: 142.3 kB / 0.816 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.01013, allocations: 3.938 kB / 0.816 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005279/0.01065, allocations: 246 kB / 0.8162 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.551e-05/0.0107, allocations: 35.72 kB / 0.8163 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.0107, allocations: 0 / 0.8163 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.01072, allocations: 4 kB / 0.8163 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.01082, allocations: 11.94 kB / 0.8163 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.01083, allocations: 0 / 0.8163 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.01101, allocations: 38.55 kB / 0.8163 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.01103, allocations: 4 kB / 0.8163 GB, free: 12.23 MB / 0.7761 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.0001388/0.01117, allocations: 164.6 kB / 0.8165 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.01119, allocations: 11.89 kB / 0.8165 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.076e-05/0.01123, allocations: 12.94 kB / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.01123, allocations: 4.531 kB / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.01124, allocations: 0 / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.01124, allocations: 1.938 kB / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.0114, allocations: 140.5 kB / 0.8166 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.0114, allocations: 0 / 0.8166 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.497e-05/0.01148, allocations: 11.98 kB / 0.8166 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.01148, allocations: 0.625 kB / 0.8166 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.01149, allocations: 7.938 kB / 0.8167 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.01149, allocations: 0.6562 kB / 0.8167 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.0115, allocations: 7.938 kB / 0.8167 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003199/0.01182, allocations: 140.3 kB / 0.8168 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.474e-05/0.01183, allocations: 8 kB / 0.8168 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.01185, allocations: 3.938 kB / 0.8168 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.717e-05/0.01191, allocations: 7.984 kB / 0.8168 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.158e-05/0.01197, allocations: 11.98 kB / 0.8168 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.01198, allocations: 0 / 0.8168 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.75e-05/0.01207, allocations: 139.2 kB / 0.817 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01207, allocations: 0 / 0.817 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002207/0.01229, allocations: 24 kB / 0.817 GB, free: 11.49 MB / 0.7761 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.0001789/0.01247, allocations: 101.5 kB / 0.8171 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004603/0.01293, allocations: 212.7 kB / 0.8173 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01294, allocations: 0.9375 kB / 0.8173 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001543/0.01309, allocations: 51.59 kB / 0.8173 GB, free: 11.1 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.01331, allocations: 23.23 kB / 0.8174 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004/0.01371, allocations: 171 kB / 0.8175 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.943e-05/0.01379, allocations: 72.39 kB / 0.8176 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.52e-05/0.01383, allocations: 4.969 kB / 0.8176 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.904e-05/0.01386, allocations: 16.5 kB / 0.8176 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of SimCode: time 4.2e-07/0.01387, allocations: 0.5312 kB / 0.8176 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of Templates: time 0.005286/0.01915, allocations: 1.727 MB / 0.8193 GB, free: 9.105 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.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.205743258004077]