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.0008049/0.0008049, allocations: 72.45 kB / 19.17 MB, free: 0.7148 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.0008166/0.0008166, allocations: 169.9 kB / 22.46 MB, free: 2.07 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.8766/0.8766, allocations: 177.1 MB / 202.8 MB, free: 5.758 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.769/1.769, allocations: 377.8 MB / 0.6221 GB, free: 8.664 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.946e-06/2.946e-06, allocations: 0 / 0.981 GB, free: 2.516 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.1e-05/2.395e-05, allocations: 2.281 kB / 0.981 GB, free: 2.512 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00147/0.001494, allocations: 0.7839 MB / 0.9818 GB, free: 1.73 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001223/0.002716, allocations: 1.17 MB / 0.9829 GB, free: 0.5469 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.55e-05/0.002762, allocations: 0 / 0.9829 GB, free: 0.5469 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.698e-05/0.002789, allocations: 3.938 kB / 0.9829 GB, free: 0.543 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.334e-05/0.002852, allocations: 19.8 kB / 0.983 GB, free: 0.5234 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.003279, allocations: 141 kB / 0.9831 GB, free: 400 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.003425, allocations: 127.8 kB / 0.9832 GB, free: 272 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 8.256e-05/0.003508, allocations: 15.92 kB / 0.9832 GB, free: 256 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.003609, allocations: 71.88 kB / 0.9833 GB, free: 184 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 7.271e-05/0.003681, allocations: 47.86 kB / 0.9833 GB, free: 136 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.003702, allocations: 12 kB / 0.9834 GB, free: 124 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.154e-05/0.003753, allocations: 23.98 kB / 0.9834 GB, free: 100 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.026e-05/0.003774, allocations: 8 kB / 0.9834 GB, free: 92 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 4.595e-05/0.003819, allocations: 35.91 kB / 0.9834 GB, free: 56 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.003988, allocations: 139.6 kB / 0.9836 GB, free: 15.92 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.00399, allocations: 0 / 0.9836 GB, free: 15.92 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.233e-06/0.003992, allocations: 4 kB / 0.9836 GB, free: 15.91 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.003996, allocations: 0 / 0.9836 GB, free: 15.91 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.001137/0.005132, allocations: 347.8 kB / 0.9839 GB, free: 15.54 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.00517, allocations: 12.03 kB / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.495e-05/0.005195, allocations: 34.69 kB / 0.9839 GB, free: 15.48 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.421e-05/0.005229, allocations: 8.891 kB / 0.9839 GB, free: 15.47 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.33e-05/0.005302, allocations: 121.7 kB / 0.9841 GB, free: 15.33 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.005314, allocations: 4.375 kB / 0.9841 GB, free: 15.32 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.005332, allocations: 12.38 kB / 0.9841 GB, free: 15.31 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.005493, allocations: 82.19 kB / 0.9842 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.005499, allocations: 192 / 0.9842 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.005508, allocations: 384 / 0.9842 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.005513, allocations: 8.125 kB / 0.9842 GB, free: 15.22 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.005665, allocations: 67.92 kB / 0.9842 GB, free: 15.15 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003512/0.006016, allocations: 275.9 kB / 0.9845 GB, free: 14.84 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.006124, allocations: 58.53 kB / 0.9845 GB, free: 14.77 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.018e-05/0.006204, allocations: 44.84 kB / 0.9846 GB, free: 14.73 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.006222, allocations: 0 / 0.9846 GB, free: 14.73 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001844/0.006407, allocations: 103.2 kB / 0.9847 GB, free: 14.61 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.006408, allocations: 8 kB / 0.9847 GB, free: 14.61 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0003398/0.006748, allocations: 157.5 kB / 0.9848 GB, free: 14.45 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.006779, allocations: 51.41 kB / 0.9849 GB, free: 14.38 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.431e-05/0.006854, allocations: 130 kB / 0.985 GB, free: 14.24 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.006871, allocations: 33.7 kB / 0.9851 GB, free: 14.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.916e-05/0.00692, allocations: 92.08 kB / 0.9851 GB, free: 14.11 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.821e-05/0.006939, allocations: 23.92 kB / 0.9852 GB, free: 14.09 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.921e-05/0.006988, allocations: 33.69 kB / 0.9852 GB, free: 14.05 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.958e-05/0.007067, allocations: 322.8 kB / 0.9855 GB, free: 13.72 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.007199, allocations: 85.64 kB / 0.9856 GB, free: 13.63 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.007331, allocations: 116.2 kB / 0.9857 GB, free: 13.5 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.007524, allocations: 144.3 kB / 0.9858 GB, free: 13.35 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.007526, allocations: 0 / 0.9858 GB, free: 13.35 MB / 0.948 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003418/0.007868, allocations: 248.8 kB / 0.9861 GB, free: 13.09 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.303e-05/0.007911, allocations: 37.69 kB / 0.9861 GB, free: 13.04 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.007916, allocations: 4.062 kB / 0.9861 GB, free: 13.04 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.007927, allocations: 0 / 0.9861 GB, free: 13.04 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.67e-05/0.008014, allocations: 23.92 kB / 0.9861 GB, free: 13.02 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.00802, allocations: 3.984 kB / 0.9861 GB, free: 13.01 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.008136, allocations: 39.91 kB / 0.9862 GB, free: 12.97 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.008151, allocations: 4 kB / 0.9862 GB, free: 12.97 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 7.373e-05/0.008225, allocations: 121.8 kB / 0.9863 GB, free: 12.84 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-06/0.008234, allocations: 3.938 kB / 0.9863 GB, free: 12.84 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.689e-05/0.008261, allocations: 20.41 kB / 0.9863 GB, free: 12.82 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.008263, allocations: 0 / 0.9863 GB, free: 12.82 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.008267, allocations: 0 / 0.9863 GB, free: 12.82 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.008271, allocations: 0 / 0.9863 GB, free: 12.82 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.741e-05/0.008368, allocations: 156.6 kB / 0.9865 GB, free: 12.62 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.008369, allocations: 320 / 0.9865 GB, free: 12.62 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.193e-05/0.008411, allocations: 11.98 kB / 0.9865 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.008413, allocations: 4 kB / 0.9865 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.008422, allocations: 8 kB / 0.9865 GB, free: 12.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.008423, allocations: 3.938 kB / 0.9865 GB, free: 12.59 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.008423, allocations: 0 / 0.9865 GB, free: 12.59 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002076/0.008631, allocations: 145 kB / 0.9866 GB, free: 12.43 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.037e-05/0.008641, allocations: 7.953 kB / 0.9866 GB, free: 12.43 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.008653, allocations: 3.984 kB / 0.9866 GB, free: 12.42 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.625e-05/0.008689, allocations: 15.98 kB / 0.9867 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.653e-05/0.008726, allocations: 11.98 kB / 0.9867 GB, free: 12.39 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-06/0.008731, allocations: 96 / 0.9867 GB, free: 12.39 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.003e-05/0.008771, allocations: 103.2 kB / 0.9868 GB, free: 12.29 MB / 0.948 GB Notification: Performance of sort global known variables: time 6.1e-08/0.008771, allocations: 3.938 kB / 0.9868 GB, free: 12.29 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001587/0.00893, allocations: 23.94 kB / 0.9868 GB, free: 12.27 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.0004651/0.009395, allocations: 0.6904 MB / 0.9875 GB, free: 11.55 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003125/0.009707, allocations: 212.9 kB / 0.9877 GB, free: 11.32 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.009709, allocations: 0 / 0.9877 GB, free: 11.32 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 9.62e-05/0.009805, allocations: 39.97 kB / 0.9877 GB, free: 11.28 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001684/0.009974, allocations: 16.11 kB / 0.9877 GB, free: 11.27 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.01153, allocations: 1.756 MB / 0.9894 GB, free: 9.383 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.313e-05/0.01157, allocations: 75.27 kB / 0.9895 GB, free: 9.289 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.978e-05/0.0116, allocations: 4 kB / 0.9895 GB, free: 9.285 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.434e-05/0.01164, allocations: 24.48 kB / 0.9895 GB, free: 9.262 MB / 0.948 GB Notification: Performance of SimCode: time 4.61e-07/0.01164, allocations: 0 / 0.9895 GB, free: 9.262 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.02868, allocations: 3.498 MB / 0.993 GB, free: 5.938 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.725/6.753, allocations: 8.469 kB / 0.993 GB, free: 5.934 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.828009268268943]