Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001904/0.001904, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 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.002243/0.002243, allocations: 215.2 kB / 22.25 MB, free: 5.082 MB / 14.72 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.467/1.467, allocations: 230.6 MB / 256 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.917/2.917, allocations: 476.8 MB / 0.7707 GB, free: 4.297 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 65.73 kB / 1.117 GB, free: 40.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3503, allocations: 170 MB / 1.283 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002419/0.3528, allocations: 0.7997 MB / 1.284 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001812/0.3546, allocations: 1.184 MB / 1.285 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.892e-05/0.3546, allocations: 0 / 1.285 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.669e-05/0.3547, allocations: 11.86 kB / 1.285 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.285e-05/0.3548, allocations: 19.86 kB / 1.285 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005249/0.3553, allocations: 130.9 kB / 1.286 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002184/0.3555, allocations: 127.8 kB / 1.286 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.3556, allocations: 11.98 kB / 1.286 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.3557, allocations: 55.83 kB / 1.286 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.3558, allocations: 51.88 kB / 1.286 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.793e-05/0.3559, allocations: 8 kB / 1.286 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.37e-05/0.3559, allocations: 31.92 kB / 1.286 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.664e-05/0.356, allocations: 7.984 kB / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.846e-05/0.356, allocations: 47.84 kB / 1.286 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.3563, allocations: 119.9 kB / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3563, allocations: 0 / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3563, allocations: 0 / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.634e-06/0.3563, allocations: 4 kB / 1.286 GB, free: 9.07 MB / 0.9825 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.0007845/0.3571, allocations: 351.7 kB / 1.286 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.3571, allocations: 12.03 kB / 1.286 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.915e-05/0.3571, allocations: 34.73 kB / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.047e-05/0.3572, allocations: 12.89 kB / 1.286 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.3573, allocations: 130.4 kB / 1.286 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.3573, allocations: 4.312 kB / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.3574, allocations: 8.375 kB / 1.286 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.3577, allocations: 74.2 kB / 1.287 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3577, allocations: 3.938 kB / 1.287 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.3577, allocations: 4 kB / 1.287 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3577, allocations: 4 kB / 1.287 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003065/0.358, allocations: 75.89 kB / 1.287 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005296/0.3585, allocations: 311.7 kB / 1.287 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.3587, allocations: 50.53 kB / 1.287 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.3589, allocations: 44.92 kB / 1.287 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.3589, allocations: 0 / 1.287 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004155/0.3593, allocations: 91.34 kB / 1.287 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.3593, allocations: 0 / 1.287 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0006681/0.36, allocations: 169.5 kB / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.3601, allocations: 55.41 kB / 1.287 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.3602, allocations: 125.3 kB / 1.287 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.3602, allocations: 29.7 kB / 1.287 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.954e-05/0.3603, allocations: 92.12 kB / 1.288 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.971e-05/0.3604, allocations: 19.92 kB / 1.288 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-05/0.3604, allocations: 37.7 kB / 1.288 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002187/0.3607, allocations: 322.8 kB / 1.288 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002244/0.3609, allocations: 59.95 kB / 1.288 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/0.3611, allocations: 78.52 kB / 1.288 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003939/0.3615, allocations: 144.1 kB / 1.288 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.3615, allocations: 0 / 1.288 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005624/0.3621, allocations: 219.2 kB / 1.288 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.901e-05/0.3621, allocations: 37.69 kB / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3621, allocations: 0 / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3621, allocations: 0 / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.3623, allocations: 15.98 kB / 1.288 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.3623, allocations: 3.938 kB / 1.288 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.3625, allocations: 47.95 kB / 1.289 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.3625, allocations: 7.984 kB / 1.289 GB, free: 6.207 MB / 0.9825 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.0001283/0.3627, allocations: 121.8 kB / 1.289 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.727e-05/0.3627, allocations: 7.953 kB / 1.289 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.801e-05/0.3627, allocations: 12.31 kB / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3627, allocations: 0 / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.3627, allocations: 3.984 kB / 1.289 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.3627, allocations: 96 / 1.289 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.3629, allocations: 168.6 kB / 1.289 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3629, allocations: 0 / 1.289 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.363, allocations: 11.98 kB / 1.289 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.363, allocations: 4 kB / 1.289 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.363, allocations: 4.297 kB / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.363, allocations: 0 / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.363, allocations: 4 kB / 1.289 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004937/0.3635, allocations: 160.9 kB / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.854e-05/0.3636, allocations: 11.95 kB / 1.289 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.3636, allocations: 0 / 1.289 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.033e-05/0.3637, allocations: 11.98 kB / 1.289 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.806e-05/0.3637, allocations: 7.984 kB / 1.289 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.3637, allocations: 4 kB / 1.289 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.536e-05/0.3638, allocations: 95.27 kB / 1.289 GB, free: 5.52 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3638, allocations: 0 / 1.289 GB, free: 5.52 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002306/0.364, allocations: 20 kB / 1.289 GB, free: 5.5 MB / 0.9825 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.0009382/0.365, allocations: 0.6943 MB / 1.29 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005397/0.3655, allocations: 175.3 kB / 1.29 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3655, allocations: 0 / 1.29 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.3657, allocations: 39.91 kB / 1.29 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/0.3659, allocations: 22.77 kB / 1.29 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/0.3685, allocations: 1.637 MB / 1.292 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.3688, allocations: 0.6905 MB / 1.292 GB, free: 2.078 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.154e-05/0.3688, allocations: 8 kB / 1.292 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.627e-05/0.3689, allocations: 23.42 kB / 1.292 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of SimCode: time 7.11e-07/0.3689, allocations: 0 / 1.292 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03603/0.4049, allocations: 2.82 MB / 1.295 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.44, allocations: 0 / 1.295 GB, free: 15.37 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable switch1.u1 in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u1 from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u2 in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u2 from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u3 in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u3 from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.40584562500044]