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.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.001367/0.001367, allocations: 105.7 kB / 17.54 MB, free: 4.746 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.001393/0.001393, allocations: 185.9 kB / 20.71 MB, free: 1.586 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.306/1.306, allocations: 225.6 MB / 249.3 MB, free: 3.16 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.499/2.499, allocations: 476.7 MB / 0.7628 GB, free: 15.15 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_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: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.91 kB / 1.107 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7936/0.7955, allocations: 168.7 MB / 1.271 GB, free: 7.688 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001691/0.7972, allocations: 0.8009 MB / 1.272 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.7983, allocations: 1.157 MB / 1.273 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.274e-05/0.7984, allocations: 0.8125 kB / 1.273 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.442e-05/0.7984, allocations: 4.594 kB / 1.273 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.831e-05/0.7985, allocations: 19.52 kB / 1.273 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004168/0.7989, allocations: 134.2 kB / 1.274 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.7991, allocations: 123.7 kB / 1.274 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.393e-05/0.7992, allocations: 19.17 kB / 1.274 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.942e-05/0.7992, allocations: 55.28 kB / 1.274 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.044e-05/0.7993, allocations: 48.98 kB / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.7994, allocations: 11.03 kB / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.363e-05/0.7994, allocations: 25.55 kB / 1.274 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.7994, allocations: 23.53 kB / 1.274 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.598e-05/0.7995, allocations: 41.11 kB / 1.274 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.7997, allocations: 118.3 kB / 1.274 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.7997, allocations: 1.969 kB / 1.274 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7997, allocations: 4.906 kB / 1.274 GB, free: 6.094 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.7997, allocations: 0 / 1.274 GB, free: 6.094 MB / 0.9981 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.0005097/0.8002, allocations: 425.2 kB / 1.274 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.8002, allocations: 12.53 kB / 1.274 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.312e-05/0.8002, allocations: 33.92 kB / 1.274 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.8003, allocations: 9.891 kB / 1.274 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.585e-05/0.8003, allocations: 180.1 kB / 1.275 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.8004, allocations: 7.5 kB / 1.275 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.8004, allocations: 7.031 kB / 1.275 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.8006, allocations: 74.84 kB / 1.275 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.8006, allocations: 3.938 kB / 1.275 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.8006, allocations: 0.8125 kB / 1.275 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.8006, allocations: 4.812 kB / 1.275 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000291/0.8009, allocations: 74.5 kB / 1.275 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003326/0.8012, allocations: 332.6 kB / 1.275 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001713/0.8014, allocations: 56.45 kB / 1.275 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.8016, allocations: 48 kB / 1.275 GB, free: 5 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.8016, allocations: 3.766 kB / 1.275 GB, free: 5 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002318/0.8018, allocations: 92.97 kB / 1.275 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.8018, allocations: 4 kB / 1.275 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0005454/0.8024, allocations: 163.2 kB / 1.275 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.585e-05/0.8024, allocations: 52.84 kB / 1.275 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.669e-05/0.8025, allocations: 121.1 kB / 1.276 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.8025, allocations: 32.58 kB / 1.276 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.8025, allocations: 90.53 kB / 1.276 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.8025, allocations: 27.06 kB / 1.276 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.16e-05/0.8026, allocations: 32.12 kB / 1.276 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.788e-05/0.8026, allocations: 322.8 kB / 1.276 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.8028, allocations: 57.89 kB / 1.276 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.803, allocations: 89.17 kB / 1.276 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003296/0.8034, allocations: 143.3 kB / 1.276 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.8034, allocations: 4.781 kB / 1.276 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004798/0.8038, allocations: 212.5 kB / 1.277 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/0.8039, allocations: 33.64 kB / 1.277 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.8039, allocations: 2.438 kB / 1.277 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.8039, allocations: 0.5938 kB / 1.277 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.804, allocations: 17.36 kB / 1.277 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.804, allocations: 5.031 kB / 1.277 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.8042, allocations: 46.03 kB / 1.277 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.8042, allocations: 5.781 kB / 1.277 GB, free: 3.934 MB / 0.9981 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 5.927e-05/0.8043, allocations: 119.1 kB / 1.277 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.405e-05/0.8043, allocations: 2.781 kB / 1.277 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.341e-05/0.8043, allocations: 11.56 kB / 1.277 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.8043, allocations: 4.781 kB / 1.277 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.8044, allocations: 0.7812 kB / 1.277 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.8044, allocations: 3.656 kB / 1.277 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.39e-05/0.8044, allocations: 185.2 kB / 1.277 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.8044, allocations: 0 / 1.277 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.892e-05/0.8045, allocations: 26.23 kB / 1.277 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.8045, allocations: 0 / 1.277 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-06/0.8045, allocations: 1.062 kB / 1.277 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.8046, allocations: 5.25 kB / 1.277 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.8046, allocations: 0 / 1.277 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003485/0.8049, allocations: 152.7 kB / 1.277 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.999e-05/0.8049, allocations: 87.94 kB / 1.277 GB, free: 3.387 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.8049, allocations: 5.25 kB / 1.277 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.073e-05/0.805, allocations: 14.53 kB / 1.277 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.8051, allocations: 7.625 kB / 1.277 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.8051, allocations: 2.188 kB / 1.277 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.374e-05/0.8051, allocations: 101 kB / 1.277 GB, free: 3.293 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.8051, allocations: 0.9375 kB / 1.277 GB, free: 3.293 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002056/0.8053, allocations: 19.66 kB / 1.277 GB, free: 3.293 MB / 0.9981 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.0005398/0.8058, allocations: 0.6954 MB / 1.278 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000433/0.8063, allocations: 173.1 kB / 1.278 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.8063, allocations: 4.656 kB / 1.278 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.8064, allocations: 45.95 kB / 1.278 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.8066, allocations: 18.89 kB / 1.278 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/0.8085, allocations: 1.646 MB / 1.28 GB, free: 17.23 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.8088, allocations: 0.6887 MB / 1.281 GB, free: 16.53 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.44e-05/0.8088, allocations: 4.359 kB / 1.281 GB, free: 16.53 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.278e-05/0.8089, allocations: 20.59 kB / 1.281 GB, free: 16.51 MB / 1.014 GB Notification: Performance of SimCode: time 3.91e-07/0.8089, allocations: 0 / 1.281 GB, free: 16.51 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.8326, allocations: 2.684 MB / 1.283 GB, free: 16.05 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.94/7.773, allocations: 3.375 kB / 1.283 GB, free: 16.05 MB / 1.014 GB " [Timeout remaining time 292] (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: 13.173451837006724]