Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.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.001185/0.001185, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001071/0.001071, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.8842/0.8842, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.757/1.757, allocations: 377.8 MB / 0.6221 GB, free: 8.645 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.Logical.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.855e-06/2.855e-06, allocations: 0 / 0.981 GB, free: 2.559 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.041e-05/2.326e-05, allocations: 2.281 kB / 0.981 GB, free: 2.555 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001349/0.001373, allocations: 0.6958 MB / 0.9817 GB, free: 1.859 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.002677, allocations: 1.275 MB / 0.9829 GB, free: 0.5703 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.771e-05/0.002725, allocations: 4 kB / 0.9829 GB, free: 0.5664 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.202e-05/0.002757, allocations: 11.86 kB / 0.9829 GB, free: 0.5547 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.066e-05/0.002828, allocations: 19.86 kB / 0.9829 GB, free: 0.5352 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006341/0.003462, allocations: 306.9 kB / 0.9832 GB, free: 252 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002561/0.003718, allocations: 263.6 kB / 0.9835 GB, free: 15.98 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.622e-05/0.003814, allocations: 16.02 kB / 0.9835 GB, free: 15.97 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.003952, allocations: 139.8 kB / 0.9836 GB, free: 15.83 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.004074, allocations: 71.81 kB / 0.9837 GB, free: 15.76 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.236e-05/0.004106, allocations: 24 kB / 0.9837 GB, free: 15.74 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.974e-05/0.004176, allocations: 39.92 kB / 0.9838 GB, free: 15.7 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.328e-05/0.004199, allocations: 15.97 kB / 0.9838 GB, free: 15.68 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 6.718e-05/0.004266, allocations: 71.88 kB / 0.9838 GB, free: 15.61 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.004488, allocations: 267.4 kB / 0.9841 GB, free: 15.35 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.00449, allocations: 0 / 0.9841 GB, free: 15.35 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.212e-06/0.004491, allocations: 0 / 0.9841 GB, free: 15.35 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.004496, allocations: 7.984 kB / 0.9841 GB, free: 15.34 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.0003973/0.004894, allocations: 427.1 kB / 0.9845 GB, free: 14.88 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.004924, allocations: 8.031 kB / 0.9845 GB, free: 14.87 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.195e-05/0.004946, allocations: 34.75 kB / 0.9845 GB, free: 14.83 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.066e-05/0.004987, allocations: 20.89 kB / 0.9846 GB, free: 14.81 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.344e-05/0.00505, allocations: 121.7 kB / 0.9847 GB, free: 14.66 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.005063, allocations: 4.375 kB / 0.9847 GB, free: 14.66 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.005086, allocations: 16.38 kB / 0.9847 GB, free: 14.64 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.645e-05/0.005172, allocations: 58.17 kB / 0.9848 GB, free: 14.58 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.005178, allocations: 4.125 kB / 0.9848 GB, free: 14.58 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.005186, allocations: 4.375 kB / 0.9848 GB, free: 14.57 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.005193, allocations: 7.938 kB / 0.9848 GB, free: 14.57 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.191e-05/0.005235, allocations: 23.97 kB / 0.9848 GB, free: 14.54 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003879/0.005623, allocations: 335.8 kB / 0.9851 GB, free: 14.17 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.496e-05/0.005677, allocations: 42.42 kB / 0.9852 GB, free: 14.12 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.675e-05/0.005704, allocations: 16.86 kB / 0.9852 GB, free: 14.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-06/0.005712, allocations: 0 / 0.9852 GB, free: 14.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.005872, allocations: 95.44 kB / 0.9853 GB, free: 14 MB / 0.948 GB Notification: Performance of pre-optimization done (n=10): time 8.31e-07/0.005873, allocations: 4 kB / 0.9853 GB, free: 13.99 MB / 0.948 GB Notification: Performance of matching and sorting (n=10): time 0.0002387/0.006112, allocations: 145.5 kB / 0.9854 GB, free: 13.84 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.006145, allocations: 63.34 kB / 0.9855 GB, free: 13.77 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.084e-05/0.006226, allocations: 136.7 kB / 0.9856 GB, free: 13.63 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.006251, allocations: 33.7 kB / 0.9856 GB, free: 13.59 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.048e-05/0.006301, allocations: 100.1 kB / 0.9857 GB, free: 13.49 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.006319, allocations: 27.92 kB / 0.9858 GB, free: 13.46 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.516e-05/0.006394, allocations: 65.67 kB / 0.9858 GB, free: 13.39 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.737e-05/0.006481, allocations: 322.8 kB / 0.9861 GB, free: 13.07 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.006643, allocations: 173 kB / 0.9863 GB, free: 12.88 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.006811, allocations: 231 kB / 0.9865 GB, free: 12.61 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.007001, allocations: 235 kB / 0.9867 GB, free: 12.34 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.007006, allocations: 3.938 kB / 0.9867 GB, free: 12.34 MB / 0.948 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004139/0.00742, allocations: 471.6 kB / 0.9872 GB, free: 11.84 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.657e-05/0.007476, allocations: 93.09 kB / 0.9873 GB, free: 11.73 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.007483, allocations: 8.188 kB / 0.9873 GB, free: 11.72 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.007494, allocations: 0 / 0.9873 GB, free: 11.72 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.14e-05/0.007516, allocations: 7.984 kB / 0.9873 GB, free: 11.71 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.007523, allocations: 7.938 kB / 0.9873 GB, free: 11.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.00778, allocations: 80.23 kB / 0.9874 GB, free: 11.62 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.007804, allocations: 15.98 kB / 0.9874 GB, free: 11.61 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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 8.703e-05/0.007891, allocations: 140.2 kB / 0.9875 GB, free: 11.46 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.051e-05/0.007902, allocations: 7.953 kB / 0.9875 GB, free: 11.46 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.258e-05/0.007924, allocations: 16.36 kB / 0.9875 GB, free: 11.44 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.007927, allocations: 4 kB / 0.9876 GB, free: 11.44 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.007931, allocations: 0 / 0.9876 GB, free: 11.44 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.007934, allocations: 0 / 0.9876 GB, free: 11.44 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.693e-05/0.008031, allocations: 156.7 kB / 0.9877 GB, free: 11.24 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.008033, allocations: 0 / 0.9877 GB, free: 11.24 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.943e-06/0.00804, allocations: 7.938 kB / 0.9877 GB, free: 11.23 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.008042, allocations: 4 kB / 0.9877 GB, free: 11.23 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.008051, allocations: 7.984 kB / 0.9877 GB, free: 11.22 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.008053, allocations: 4 kB / 0.9877 GB, free: 11.22 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.008054, allocations: 0 / 0.9877 GB, free: 11.22 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.008185, allocations: 144.9 kB / 0.9879 GB, free: 11.06 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.275e-06/0.008193, allocations: 7.953 kB / 0.9879 GB, free: 11.05 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.008206, allocations: 3.984 kB / 0.9879 GB, free: 11.05 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.422e-05/0.00822, allocations: 7.938 kB / 0.9879 GB, free: 11.04 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-05/0.00825, allocations: 7.984 kB / 0.9879 GB, free: 11.03 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.008256, allocations: 4 kB / 0.9879 GB, free: 11.03 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.905e-05/0.008295, allocations: 99.27 kB / 0.988 GB, free: 10.93 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.008295, allocations: 4 kB / 0.988 GB, free: 10.93 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001897/0.008484, allocations: 44 kB / 0.988 GB, free: 10.88 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003465/0.008831, allocations: 0.6825 MB / 0.9887 GB, free: 10.17 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003392/0.00917, allocations: 419.2 kB / 0.9891 GB, free: 9.707 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.009172, allocations: 0 / 0.9891 GB, free: 9.707 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.148e-05/0.009213, allocations: 32.11 kB / 0.9891 GB, free: 9.676 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.009437, allocations: 28.5 kB / 0.9892 GB, free: 9.648 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.01126, allocations: 2.429 MB / 0.9915 GB, free: 7.004 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.048e-05/0.01131, allocations: 83.81 kB / 0.9916 GB, free: 6.898 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.815e-05/0.01135, allocations: 8.5 kB / 0.9916 GB, free: 6.891 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.317e-05/0.01139, allocations: 32.48 kB / 0.9916 GB, free: 6.859 MB / 0.948 GB Notification: Performance of SimCode: time 9.02e-07/0.01139, allocations: 0 / 0.9916 GB, free: 6.859 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01596/0.02735, allocations: 4.809 MB / 0.9963 GB, free: 2.262 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.794/6.821, allocations: 2.344 kB / 0.9963 GB, free: 2.262 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Logical.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_Logical_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable logicalSwitch.u1 in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u3 in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u3 from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.y in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.013787752017379]