Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.284/2.284, allocations: 390.3 MB / 402.8 MB, free: 6.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 180.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 221.3 MB / 0.7915 GB, free: 5.391 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008471/0.000847, allocations: 94.5 kB / 0.9317 GB, free: 5.699 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.254e-05/4.273e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3519, allocations: 143 MB / 1.219 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.117/1.469, allocations: 150.3 MB / 1.366 GB, free: 3.664 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/1.469, allocations: 73.33 kB / 1.366 GB, free: 3.625 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006818/1.476, allocations: 2.22 MB / 1.368 GB, free: 1.684 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.134e-06/1.476, allocations: 7.938 kB / 1.368 GB, free: 1.676 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.556e-06/1.476, allocations: 0 / 1.368 GB, free: 1.676 MB / 0.823 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.0006037/1.477, allocations: 415.7 kB / 1.368 GB, free: 1.227 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/1.477, allocations: 12.03 kB / 1.368 GB, free: 1.215 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.671e-05/1.477, allocations: 4 kB / 1.368 GB, free: 1.211 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001741/1.477, allocations: 182.9 kB / 1.368 GB, free: 0.9922 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/1.477, allocations: 7.25 kB / 1.368 GB, free: 0.9883 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/1.477, allocations: 4 kB / 1.368 GB, free: 0.9844 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/1.477, allocations: 57.38 kB / 1.368 GB, free: 0.9297 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/1.477, allocations: 0 / 1.368 GB, free: 0.9297 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/1.477, allocations: 0 / 1.368 GB, free: 0.9297 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/1.477, allocations: 2.75 kB / 1.368 GB, free: 0.9297 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.55e-05/1.477, allocations: 26.69 kB / 1.368 GB, free: 0.9141 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000511/1.478, allocations: 332.6 kB / 1.369 GB, free: 0.5703 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.216e-05/1.478, allocations: 33.39 kB / 1.369 GB, free: 0.5352 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.243e-05/1.478, allocations: 20.11 kB / 1.369 GB, free: 0.5156 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/1.478, allocations: 0 / 1.369 GB, free: 0.5156 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001612/1.478, allocations: 78.27 kB / 1.369 GB, free: 448 kB / 0.823 GB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/1.478, allocations: 4 kB / 1.369 GB, free: 444 kB / 0.823 GB Notification: Performance of matching and sorting (n=6): time 0.0002237/1.478, allocations: 76.02 kB / 1.369 GB, free: 372 kB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/1.478, allocations: 55.34 kB / 1.369 GB, free: 304 kB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/1.479, allocations: 115.7 kB / 1.369 GB, free: 188 kB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/1.479, allocations: 29.14 kB / 1.369 GB, free: 156 kB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 7.491e-05/1.479, allocations: 95.34 kB / 1.369 GB, free: 60 kB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.795e-05/1.479, allocations: 15.19 kB / 1.369 GB, free: 48 kB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.114e-05/1.479, allocations: 0 / 1.369 GB, free: 48 kB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0002028/1.479, allocations: 322.8 kB / 1.37 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.61e-05/1.479, allocations: 37.62 kB / 1.37 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.516e-05/1.479, allocations: 56.56 kB / 1.37 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.929e-05/1.479, allocations: 60.53 kB / 1.37 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.479, allocations: 7.875 kB / 1.37 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002827/1.479, allocations: 164.3 kB / 1.37 GB, free: 15.44 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.519e-05/1.48, allocations: 34.11 kB / 1.37 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/1.48, allocations: 8 kB / 1.37 GB, free: 15.4 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/1.48, allocations: 3.984 kB / 1.37 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/1.48, allocations: 23.92 kB / 1.37 GB, free: 15.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/1.48, allocations: 3.953 kB / 1.37 GB, free: 15.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/1.48, allocations: 59.58 kB / 1.37 GB, free: 15.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/1.48, allocations: 11.98 kB / 1.37 GB, free: 15.3 MB / 0.8386 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 () * 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 9.026e-05/1.48, allocations: 105 kB / 1.37 GB, free: 15.19 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.403e-05/1.48, allocations: 7.906 kB / 1.37 GB, free: 15.18 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.422e-05/1.48, allocations: 7.938 kB / 1.37 GB, free: 15.18 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/1.48, allocations: 4 kB / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.48, allocations: 0 / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/1.48, allocations: 3.953 kB / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/1.48, allocations: 192.5 kB / 1.37 GB, free: 14.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/1.48, allocations: 0 / 1.37 GB, free: 14.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/1.481, allocations: 19.98 kB / 1.37 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/1.481, allocations: 0 / 1.37 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/1.481, allocations: 0 / 1.37 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/1.481, allocations: 4.125 kB / 1.37 GB, free: 14.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.481, allocations: 4 kB / 1.37 GB, free: 14.92 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/1.481, allocations: 113.1 kB / 1.371 GB, free: 14.8 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.885e-05/1.481, allocations: 77.11 kB / 1.371 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/1.481, allocations: 4 kB / 1.371 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.349e-05/1.481, allocations: 15.98 kB / 1.371 GB, free: 14.69 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/1.481, allocations: 11.11 kB / 1.371 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/1.481, allocations: 4 kB / 1.371 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.325e-05/1.481, allocations: 96.58 kB / 1.371 GB, free: 14.59 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.481, allocations: 0 / 1.371 GB, free: 14.59 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002157/1.481, allocations: 27.91 kB / 1.371 GB, free: 14.56 MB / 0.8386 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 () * 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.0002291/1.482, allocations: 113.8 kB / 1.371 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002541/1.482, allocations: 148.4 kB / 1.371 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/1.482, allocations: 4.125 kB / 1.371 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.316e-05/1.482, allocations: 26.94 kB / 1.371 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001808/1.482, allocations: 19.91 kB / 1.371 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000275/1.482, allocations: 94.84 kB / 1.371 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/1.483, allocations: 0.6887 MB / 1.372 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.032e-05/1.483, allocations: 12.12 kB / 1.372 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.716e-05/1.483, allocations: 15.42 kB / 1.372 GB, free: 13.43 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.483, allocations: 0 / 1.372 GB, free: 13.43 MB / 0.8386 GB Notification: Performance of Templates: time 0.003657/1.486, allocations: 1.327 MB / 1.373 GB, free: 12.14 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches