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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 108.6 kB / 16.45 MB, free: 6.035 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.002061/0.002061, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.516/1.516, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.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.602/2.602, allocations: 443.5 MB / 0.7287 GB, free: 13.24 MB / 0.5919 GB " [Timeout remaining time 177] 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 79.86 kB / 1.056 GB, free: 5.793 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9374/0.9394, allocations: 160.7 MB / 1.213 GB, free: 3.812 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002566/0.942, allocations: 0.7986 MB / 1.214 GB, free: 3.211 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002081/0.944, allocations: 1.152 MB / 1.215 GB, free: 2.281 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.484e-05/0.9441, allocations: 1.125 kB / 1.215 GB, free: 2.281 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.15e-05/0.9441, allocations: 7.938 kB / 1.215 GB, free: 2.273 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.874e-05/0.9442, allocations: 18.8 kB / 1.215 GB, free: 2.258 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005222/0.9447, allocations: 140.9 kB / 1.215 GB, free: 2.16 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002291/0.945, allocations: 125.2 kB / 1.215 GB, free: 2.09 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.9451, allocations: 13.02 kB / 1.215 GB, free: 2.082 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.9452, allocations: 45.03 kB / 1.215 GB, free: 2.059 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.9453, allocations: 57.52 kB / 1.215 GB, free: 2.016 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.9453, allocations: 14.97 kB / 1.215 GB, free: 2.012 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.125e-05/0.9454, allocations: 30.05 kB / 1.215 GB, free: 2 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.954e-05/0.9455, allocations: 13.86 kB / 1.215 GB, free: 1.988 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.848e-05/0.9455, allocations: 52.2 kB / 1.215 GB, free: 1.949 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.9457, allocations: 116.3 kB / 1.215 GB, free: 1.863 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.9457, allocations: 0 / 1.215 GB, free: 1.863 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9458, allocations: 1.125 kB / 1.215 GB, free: 1.863 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.275e-05/0.9458, allocations: 3.984 kB / 1.215 GB, free: 1.859 MB / 0.92 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.0007067/0.9465, allocations: 431.7 kB / 1.216 GB, free: 1.418 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.9465, allocations: 10.78 kB / 1.216 GB, free: 1.418 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.924e-05/0.9466, allocations: 35.94 kB / 1.216 GB, free: 1.375 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.592e-05/0.9466, allocations: 9.734 kB / 1.216 GB, free: 1.371 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/0.9468, allocations: 175.9 kB / 1.216 GB, free: 1.168 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.9468, allocations: 3.438 kB / 1.216 GB, free: 1.168 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.869e-05/0.9468, allocations: 5.688 kB / 1.216 GB, free: 1.168 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.9471, allocations: 87.28 kB / 1.216 GB, free: 1.102 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.9471, allocations: 8.938 kB / 1.216 GB, free: 1.094 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.9471, allocations: 0 / 1.216 GB, free: 1.094 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.9471, allocations: 1.125 kB / 1.216 GB, free: 1.094 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.9474, allocations: 66.61 kB / 1.216 GB, free: 1.066 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005315/0.9479, allocations: 326.5 kB / 1.217 GB, free: 0.7266 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.9481, allocations: 62.25 kB / 1.217 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.9483, allocations: 41.44 kB / 1.217 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.9483, allocations: 0.9062 kB / 1.217 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003477/0.9487, allocations: 91.73 kB / 1.217 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 4.278e-06/0.9487, allocations: 3.984 kB / 1.217 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0006239/0.9493, allocations: 171.3 kB / 1.217 GB, free: 488 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.9493, allocations: 52.81 kB / 1.217 GB, free: 424 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.9495, allocations: 121.6 kB / 1.217 GB, free: 308 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.9495, allocations: 28.98 kB / 1.217 GB, free: 276 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.541e-05/0.9496, allocations: 103.3 kB / 1.217 GB, free: 172 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.69e-05/0.9496, allocations: 14.09 kB / 1.217 GB, free: 160 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.969e-05/0.9497, allocations: 35.73 kB / 1.217 GB, free: 132 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001862/0.9499, allocations: 319.9 kB / 1.218 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.9501, allocations: 60.2 kB / 1.218 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.9503, allocations: 81.95 kB / 1.218 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.9507, allocations: 149.2 kB / 1.218 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.9507, allocations: 1.125 kB / 1.218 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005463/0.9512, allocations: 217.4 kB / 1.218 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.401e-05/0.9513, allocations: 32.58 kB / 1.218 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.9513, allocations: 5.156 kB / 1.218 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.9513, allocations: 1.219 kB / 1.218 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.9514, allocations: 31.97 kB / 1.218 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.9514, allocations: 1.344 kB / 1.218 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.9517, allocations: 34.42 kB / 1.218 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.9517, allocations: 5.344 kB / 1.218 GB, free: 15.41 MB / 0.9356 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.0001144/0.9518, allocations: 122.8 kB / 1.218 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.9518, allocations: 7.328 kB / 1.218 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.951e-05/0.9519, allocations: 17.48 kB / 1.218 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.9519, allocations: 1.625 kB / 1.218 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.9519, allocations: 0 / 1.218 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.9519, allocations: 0 / 1.218 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.952, allocations: 182.2 kB / 1.219 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.952, allocations: 0.8125 kB / 1.219 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.9522, allocations: 18.62 kB / 1.219 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.9522, allocations: 1.094 kB / 1.219 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.9522, allocations: 1.031 kB / 1.219 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.9522, allocations: 0 / 1.219 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.9522, allocations: 5.031 kB / 1.219 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004033/0.9526, allocations: 156.9 kB / 1.219 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.035e-05/0.9526, allocations: 86.22 kB / 1.219 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.9526, allocations: 1.188 kB / 1.219 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.682e-05/0.9527, allocations: 18.88 kB / 1.219 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.405e-05/0.9528, allocations: 7.531 kB / 1.219 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.9528, allocations: 1.906 kB / 1.219 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.294e-05/0.9529, allocations: 93.83 kB / 1.219 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9529, allocations: 3.938 kB / 1.219 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002259/0.9531, allocations: 19.59 kB / 1.219 GB, free: 14.72 MB / 0.9356 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.0007886/0.9539, allocations: 0.697 MB / 1.22 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000474/0.9544, allocations: 182.7 kB / 1.22 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.9544, allocations: 0 / 1.22 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.9545, allocations: 42.19 kB / 1.22 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002245/0.9547, allocations: 14.98 kB / 1.22 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002451/0.9572, allocations: 1.642 MB / 1.221 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.9575, allocations: 0.6888 MB / 1.222 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.487e-05/0.9576, allocations: 6.484 kB / 1.222 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.056e-05/0.9576, allocations: 23.44 kB / 1.222 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of SimCode: time 3.31e-07/0.9576, allocations: 0 / 1.222 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02613/0.9838, allocations: 2.698 MB / 1.225 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.103/9.087, allocations: 5.922 kB / 1.225 GB, free: 10.33 MB / 0.9356 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 15.206671206280589]