Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Integers.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.001397/0.001397, allocations: 110.8 kB / 17.54 MB, free: 4.641 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.001436/0.001436, allocations: 189.9 kB / 20.71 MB, free: 1.484 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.31/1.31, allocations: 225.6 MB / 249.3 MB, free: 3.176 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.337/2.337, allocations: 443.5 MB / 0.7304 GB, free: 13.95 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Integers.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 67.89 kB / 1.059 GB, free: 0.9688 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2603, allocations: 160.7 MB / 1.216 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001885/0.2622, allocations: 0.8348 MB / 1.216 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001582/0.2637, allocations: 1.301 MB / 1.218 GB, free: 13.78 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.642e-05/0.2638, allocations: 0 / 1.218 GB, free: 13.78 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.397e-05/0.2638, allocations: 11.88 kB / 1.218 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.982e-05/0.2639, allocations: 27.78 kB / 1.218 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008276/0.2648, allocations: 322.9 kB / 1.218 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003427/0.2651, allocations: 295.5 kB / 1.218 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.2652, allocations: 37.28 kB / 1.218 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.2654, allocations: 119.7 kB / 1.218 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.2656, allocations: 111.6 kB / 1.219 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.779e-05/0.2656, allocations: 28 kB / 1.219 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.309e-05/0.2657, allocations: 43.92 kB / 1.219 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.716e-05/0.2657, allocations: 19.92 kB / 1.219 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.2658, allocations: 107.6 kB / 1.219 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003138/0.2661, allocations: 259.5 kB / 1.219 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.2661, allocations: 3.938 kB / 1.219 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.615e-06/0.2661, allocations: 4 kB / 1.219 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.2662, allocations: 0 / 1.219 GB, free: 12.42 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006165/0.2668, allocations: 0.535 MB / 1.219 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.2668, allocations: 8.031 kB / 1.219 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.644e-05/0.2668, allocations: 38.75 kB / 1.22 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.456e-05/0.2669, allocations: 16.89 kB / 1.22 GB, free: 11.75 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.267, allocations: 188.7 kB / 1.22 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.2671, allocations: 15.94 kB / 1.22 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.737e-05/0.2671, allocations: 20 kB / 1.22 GB, free: 11.49 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.2673, allocations: 85.64 kB / 1.22 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.2673, allocations: 0 / 1.22 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.2673, allocations: 8 kB / 1.22 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.2673, allocations: 4 kB / 1.22 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.423e-05/0.2674, allocations: 43.92 kB / 1.22 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000642/0.268, allocations: 0.4926 MB / 1.22 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.2682, allocations: 66.56 kB / 1.22 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.27e-05/0.2683, allocations: 28.97 kB / 1.22 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.2683, allocations: 4 kB / 1.22 GB, free: 10.69 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001711/0.2685, allocations: 115.2 kB / 1.221 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=14): time 3.016e-06/0.2685, allocations: 3.984 kB / 1.221 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14): time 0.0003389/0.2688, allocations: 173.3 kB / 1.221 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.2689, allocations: 55.41 kB / 1.221 GB, free: 10.32 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.269, allocations: 170.1 kB / 1.221 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.269, allocations: 33.7 kB / 1.221 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.099e-05/0.2691, allocations: 112 kB / 1.221 GB, free: 9.992 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.975e-05/0.2692, allocations: 35.78 kB / 1.221 GB, free: 9.957 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.2693, allocations: 73.67 kB / 1.221 GB, free: 9.879 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.2694, allocations: 322.8 kB / 1.222 GB, free: 9.555 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.2696, allocations: 95.94 kB / 1.222 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.2698, allocations: 153.8 kB / 1.222 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.2701, allocations: 244.6 kB / 1.222 GB, free: 9.012 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2701, allocations: 4 kB / 1.222 GB, free: 9.008 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006168/0.2708, allocations: 410.3 kB / 1.222 GB, free: 8.582 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.071e-05/0.2708, allocations: 97.08 kB / 1.222 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2708, allocations: 4 kB / 1.222 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.2709, allocations: 4 kB / 1.222 GB, free: 8.461 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.21e-05/0.2709, allocations: 12 kB / 1.222 GB, free: 8.449 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.2709, allocations: 0 / 1.222 GB, free: 8.449 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004382/0.2713, allocations: 87.94 kB / 1.223 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.2714, allocations: 27.97 kB / 1.223 GB, free: 8.336 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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 0.0001176/0.2715, allocations: 129.8 kB / 1.223 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.06e-05/0.2715, allocations: 19.89 kB / 1.223 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.015e-05/0.2716, allocations: 16.84 kB / 1.223 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2716, allocations: 0 / 1.223 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2716, allocations: 0 / 1.223 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2716, allocations: 3.984 kB / 1.223 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.2718, allocations: 221.5 kB / 1.223 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2718, allocations: 3.938 kB / 1.223 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.481e-05/0.2718, allocations: 15.92 kB / 1.223 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2718, allocations: 0 / 1.223 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.2718, allocations: 4 kB / 1.223 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2718, allocations: 0 / 1.223 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2718, allocations: 7.938 kB / 1.223 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002142/0.272, allocations: 157 kB / 1.223 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.042e-05/0.2721, allocations: 92.95 kB / 1.223 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.2721, allocations: 0 / 1.223 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.718e-05/0.2721, allocations: 15.98 kB / 1.223 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/0.2722, allocations: 7.984 kB / 1.223 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.2722, allocations: 4 kB / 1.223 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.332e-05/0.2723, allocations: 122.8 kB / 1.223 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.2723, allocations: 0 / 1.223 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002512/0.2725, allocations: 48 kB / 1.223 GB, free: 7.391 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0005216/0.273, allocations: 0.7137 MB / 1.224 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004656/0.2735, allocations: 350 kB / 1.224 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.2735, allocations: 4 kB / 1.224 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.414e-05/0.2736, allocations: 39.97 kB / 1.225 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.2738, allocations: 27.03 kB / 1.225 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/0.2764, allocations: 2.26 MB / 1.227 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.2767, allocations: 0.7045 MB / 1.227 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.038e-05/0.2767, allocations: 16.59 kB / 1.227 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.143e-05/0.2768, allocations: 39.42 kB / 1.227 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of SimCode: time 4.21e-07/0.2768, allocations: 3.938 kB / 1.227 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02574/0.3025, allocations: 4.224 MB / 1.232 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.07/7.373, allocations: 6.484 kB / 1.232 GB, free: 14.91 MB / 0.9825 GB " [Timeout remaining time 293] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Integers.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_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable integerSwitch.u1 in file Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u1 from file Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u2 in file Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u2 from file Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u3 in file Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u3 from file Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.y in file Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.y from file Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.605036548004136]