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.0008247/0.0008247, allocations: 68.47 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.001005/0.001005, allocations: 173.9 kB / 22.46 MB, free: 2.09 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 0.8776/0.8776, allocations: 177.1 MB / 202.8 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.703/1.703, allocations: 377.8 MB / 0.6221 GB, free: 8.652 MB / 0.5886 GB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.335e-06/2.335e-06, allocations: 0 / 0.981 GB, free: 2.492 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.028e-05/2.261e-05, allocations: 5.375 kB / 0.981 GB, free: 2.488 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00154/0.001563, allocations: 0.7729 MB / 0.9818 GB, free: 1.715 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.002694, allocations: 1.174 MB / 0.9829 GB, free: 0.5273 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.466e-05/0.002739, allocations: 0 / 0.9829 GB, free: 0.5273 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.813e-05/0.002767, allocations: 3.938 kB / 0.9829 GB, free: 0.5234 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.658e-05/0.002834, allocations: 15.88 kB / 0.983 GB, free: 0.5078 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004114/0.003245, allocations: 134.7 kB / 0.9831 GB, free: 388 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.003395, allocations: 139.7 kB / 0.9832 GB, free: 248 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.214e-05/0.003487, allocations: 11.95 kB / 0.9832 GB, free: 236 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.00359, allocations: 67.92 kB / 0.9833 GB, free: 168 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 7.775e-05/0.003668, allocations: 43.89 kB / 0.9833 GB, free: 124 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.003691, allocations: 12 kB / 0.9833 GB, free: 112 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.367e-05/0.003744, allocations: 19.98 kB / 0.9834 GB, free: 92 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.532e-05/0.00377, allocations: 19.91 kB / 0.9834 GB, free: 72 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 5.684e-05/0.003826, allocations: 31.98 kB / 0.9834 GB, free: 40 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001894/0.004016, allocations: 139.6 kB / 0.9835 GB, free: 15.9 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.004018, allocations: 4 kB / 0.9835 GB, free: 15.9 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.884e-06/0.00402, allocations: 3.984 kB / 0.9836 GB, free: 15.89 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.117e-06/0.004024, allocations: 0 / 0.9836 GB, free: 15.89 MB / 0.948 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.0004507/0.004475, allocations: 347.8 kB / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.00451, allocations: 12.03 kB / 0.9839 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.575e-05/0.004536, allocations: 34.75 kB / 0.9839 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.326e-05/0.004569, allocations: 8.891 kB / 0.9839 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.12e-05/0.00464, allocations: 115.4 kB / 0.984 GB, free: 15.32 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.004651, allocations: 4.375 kB / 0.9841 GB, free: 15.31 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.004667, allocations: 16.38 kB / 0.9841 GB, free: 15.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001787/0.004846, allocations: 78.2 kB / 0.9841 GB, free: 15.21 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.004854, allocations: 192 / 0.9841 GB, free: 15.21 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.004864, allocations: 4.359 kB / 0.9841 GB, free: 15.21 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.82e-06/0.00487, allocations: 8.125 kB / 0.9842 GB, free: 15.2 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.005017, allocations: 63.92 kB / 0.9842 GB, free: 15.14 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003727/0.00539, allocations: 287.8 kB / 0.9845 GB, free: 14.82 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.005501, allocations: 58.47 kB / 0.9845 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.383e-05/0.005585, allocations: 44.86 kB / 0.9846 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.005606, allocations: 0 / 0.9846 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002099/0.005816, allocations: 95.3 kB / 0.9847 GB, free: 14.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 1.372e-06/0.005817, allocations: 11.88 kB / 0.9847 GB, free: 14.59 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0003385/0.006156, allocations: 157.6 kB / 0.9848 GB, free: 14.43 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/0.006188, allocations: 55.41 kB / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.558e-05/0.006264, allocations: 130 kB / 0.985 GB, free: 14.22 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.006282, allocations: 29.7 kB / 0.985 GB, free: 14.18 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.472e-05/0.006326, allocations: 96.12 kB / 0.9851 GB, free: 14.09 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.006342, allocations: 15.91 kB / 0.9852 GB, free: 14.07 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.691e-05/0.006389, allocations: 29.7 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.374e-05/0.006463, allocations: 322.8 kB / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.006592, allocations: 85.66 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.006722, allocations: 112.2 kB / 0.9857 GB, free: 13.5 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.006915, allocations: 152.2 kB / 0.9858 GB, free: 13.33 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.006917, allocations: 0 / 0.9858 GB, free: 13.33 MB / 0.948 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003037/0.007221, allocations: 248.9 kB / 0.9861 GB, free: 13.07 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.007249, allocations: 41.75 kB / 0.9861 GB, free: 13.02 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-06/0.007254, allocations: 4 kB / 0.9861 GB, free: 13.02 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.007264, allocations: 0 / 0.9861 GB, free: 13.02 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.337e-05/0.007337, allocations: 19.92 kB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.007343, allocations: 0 / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.007456, allocations: 43.84 kB / 0.9862 GB, free: 12.96 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.007473, allocations: 11.98 kB / 0.9862 GB, free: 12.95 MB / 0.948 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 6.634e-05/0.00754, allocations: 121.8 kB / 0.9863 GB, free: 12.82 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.176e-06/0.007548, allocations: 3.938 kB / 0.9863 GB, free: 12.81 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.123e-05/0.007569, allocations: 12.44 kB / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.007571, allocations: 0 / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.007576, allocations: 0 / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.007579, allocations: 0 / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.007685, allocations: 152.6 kB / 0.9865 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.007687, allocations: 320 / 0.9865 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.542e-05/0.007732, allocations: 15.97 kB / 0.9865 GB, free: 12.59 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.007735, allocations: 4 kB / 0.9865 GB, free: 12.59 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.007743, allocations: 8 kB / 0.9865 GB, free: 12.58 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.007744, allocations: 3.938 kB / 0.9865 GB, free: 12.58 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.007745, allocations: 0 / 0.9865 GB, free: 12.58 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002053/0.00795, allocations: 152.9 kB / 0.9866 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 9.098e-06/0.00796, allocations: 7.953 kB / 0.9866 GB, free: 12.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.106e-05/0.007971, allocations: 3.984 kB / 0.9866 GB, free: 12.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.819e-05/0.008009, allocations: 15.98 kB / 0.9867 GB, free: 12.38 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.523e-05/0.008044, allocations: 12.08 kB / 0.9867 GB, free: 12.37 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.00805, allocations: 3.938 kB / 0.9867 GB, free: 12.37 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.53e-05/0.008085, allocations: 98.14 kB / 0.9868 GB, free: 12.27 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.008085, allocations: 0 / 0.9868 GB, free: 12.27 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001491/0.008234, allocations: 20 kB / 0.9868 GB, free: 12.25 MB / 0.948 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.0004079/0.008642, allocations: 0.6981 MB / 0.9875 GB, free: 11.53 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002799/0.008922, allocations: 201 kB / 0.9877 GB, free: 11.31 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.008923, allocations: 0 / 0.9877 GB, free: 11.31 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.702e-05/0.00901, allocations: 47.89 kB / 0.9877 GB, free: 11.27 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001484/0.009159, allocations: 18.45 kB / 0.9877 GB, free: 11.25 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.01055, allocations: 1.757 MB / 0.9894 GB, free: 9.363 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.742e-05/0.01059, allocations: 71.28 kB / 0.9895 GB, free: 9.273 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.945e-05/0.01062, allocations: 7.984 kB / 0.9895 GB, free: 9.266 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.911e-05/0.01066, allocations: 20.5 kB / 0.9895 GB, free: 9.246 MB / 0.948 GB Notification: Performance of SimCode: time 3.71e-07/0.01066, allocations: 0 / 0.9895 GB, free: 9.246 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01469/0.02535, allocations: 3.499 MB / 0.9929 GB, free: 5.918 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.795/6.82, allocations: 9.578 kB / 0.993 GB, free: 5.914 MB / 0.948 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv","/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] "Error: Could not read variable switch1.u1 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u3 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u3 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.957777231931686]