Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.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.0007926/0.0007926, 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.000887/0.000887, allocations: 169.9 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.9006/0.9006, allocations: 177.1 MB / 202.8 MB, free: 5.727 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.726/1.726, allocations: 377.8 MB / 0.6221 GB, free: 8.648 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.Integers.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.525e-06/2.525e-06, allocations: 0 / 0.981 GB, free: 2.555 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.086e-05/2.338e-05, allocations: 4.812 kB / 0.981 GB, free: 2.551 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001483/0.001507, allocations: 0.8053 MB / 0.9818 GB, free: 1.746 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.0027, allocations: 1.314 MB / 0.983 GB, free: 428 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.941e-05/0.00275, allocations: 4 kB / 0.983 GB, free: 424 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.393e-05/0.002784, allocations: 11.81 kB / 0.9831 GB, free: 412 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.001e-05/0.002854, allocations: 23.86 kB / 0.9831 GB, free: 388 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.000602/0.003456, allocations: 324.1 kB / 0.9834 GB, free: 72 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002555/0.003711, allocations: 287.6 kB / 0.9837 GB, free: 15.79 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.003822, allocations: 37.48 kB / 0.9837 GB, free: 15.75 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.003975, allocations: 163.8 kB / 0.9839 GB, free: 15.59 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.004113, allocations: 95.77 kB / 0.9839 GB, free: 15.49 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.251e-05/0.004146, allocations: 24 kB / 0.984 GB, free: 15.47 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.659e-05/0.004212, allocations: 39.98 kB / 0.984 GB, free: 15.43 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/0.004238, allocations: 19.92 kB / 0.984 GB, free: 15.41 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 7.663e-05/0.004314, allocations: 91.84 kB / 0.9841 GB, free: 15.32 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002565/0.004571, allocations: 311 kB / 0.9844 GB, free: 15.02 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.004573, allocations: 0 / 0.9844 GB, free: 15.02 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.082e-06/0.004574, allocations: 4 kB / 0.9844 GB, free: 15.02 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.159e-06/0.004579, allocations: 0 / 0.9844 GB, free: 15.02 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004856/0.005065, allocations: 458.8 kB / 0.9849 GB, free: 14.52 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.005104, allocations: 16.03 kB / 0.9849 GB, free: 14.5 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.677e-05/0.005131, allocations: 38.73 kB / 0.9849 GB, free: 14.46 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.09e-05/0.005181, allocations: 20.89 kB / 0.9849 GB, free: 14.44 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.782e-05/0.005269, allocations: 134.1 kB / 0.9851 GB, free: 14.28 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.005294, allocations: 16.38 kB / 0.9851 GB, free: 14.27 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.005323, allocations: 24.12 kB / 0.9851 GB, free: 14.24 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.005459, allocations: 85.59 kB / 0.9852 GB, free: 14.15 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.005466, allocations: 0 / 0.9852 GB, free: 14.15 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.005477, allocations: 11.92 kB / 0.9852 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.005483, allocations: 4 kB / 0.9852 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.2e-05/0.005555, allocations: 39.98 kB / 0.9852 GB, free: 14.1 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000491/0.006046, allocations: 419.6 kB / 0.9856 GB, free: 13.64 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.006216, allocations: 70.55 kB / 0.9857 GB, free: 13.57 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.549e-05/0.006252, allocations: 24.92 kB / 0.9857 GB, free: 13.54 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.006261, allocations: 3.984 kB / 0.9857 GB, free: 13.54 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001518/0.006413, allocations: 107.3 kB / 0.9858 GB, free: 13.42 MB / 0.948 GB Notification: Performance of pre-optimization done (n=14): time 1.052e-06/0.006414, allocations: 0 / 0.9858 GB, free: 13.42 MB / 0.948 GB Notification: Performance of matching and sorting (n=14): time 0.0002619/0.006676, allocations: 178.6 kB / 0.986 GB, free: 13.24 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.00671, allocations: 63.39 kB / 0.9861 GB, free: 13.16 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.523e-05/0.006805, allocations: 164.5 kB / 0.9862 GB, free: 13 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.006831, allocations: 29.7 kB / 0.9862 GB, free: 12.96 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.769e-05/0.006889, allocations: 112.1 kB / 0.9863 GB, free: 12.85 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.006915, allocations: 31.73 kB / 0.9864 GB, free: 12.82 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.232e-05/0.006997, allocations: 77.66 kB / 0.9865 GB, free: 12.73 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.329e-05/0.007081, allocations: 326.8 kB / 0.9868 GB, free: 12.41 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.007251, allocations: 185 kB / 0.9869 GB, free: 12.21 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.007431, allocations: 233.3 kB / 0.9872 GB, free: 11.94 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.007633, allocations: 257.6 kB / 0.9874 GB, free: 11.65 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.007635, allocations: 0 / 0.9874 GB, free: 11.65 MB / 0.948 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004395/0.008075, allocations: 499.4 kB / 0.9879 GB, free: 11.12 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.136e-05/0.008126, allocations: 105 kB / 0.988 GB, free: 11 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.008132, allocations: 4 kB / 0.988 GB, free: 11 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.008142, allocations: 0 / 0.988 GB, free: 11 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.884e-05/0.008181, allocations: 20.12 kB / 0.988 GB, free: 10.98 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.008187, allocations: 0 / 0.988 GB, free: 10.98 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.008424, allocations: 87.78 kB / 0.9881 GB, free: 10.89 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.008448, allocations: 19.98 kB / 0.9881 GB, free: 10.87 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: 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 9.279e-05/0.008541, allocations: 142.3 kB / 0.9882 GB, free: 10.72 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.323e-05/0.008554, allocations: 11.95 kB / 0.9883 GB, free: 10.71 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.405e-05/0.008578, allocations: 20.72 kB / 0.9883 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.00858, allocations: 0 / 0.9883 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.008584, allocations: 0 / 0.9883 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.008588, allocations: 3.984 kB / 0.9883 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.008705, allocations: 180.7 kB / 0.9885 GB, free: 10.47 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.008706, allocations: 0 / 0.9885 GB, free: 10.47 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.018e-05/0.008726, allocations: 8 kB / 0.9885 GB, free: 10.46 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.008727, allocations: 0 / 0.9885 GB, free: 10.46 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.008737, allocations: 7.938 kB / 0.9885 GB, free: 10.45 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.00874, allocations: 15.92 kB / 0.9885 GB, free: 10.44 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.008741, allocations: 0 / 0.9885 GB, free: 10.44 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00015/0.008891, allocations: 162.9 kB / 0.9886 GB, free: 10.26 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.338e-05/0.008904, allocations: 15.84 kB / 0.9887 GB, free: 10.25 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.00892, allocations: 7.938 kB / 0.9887 GB, free: 10.24 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.573e-05/0.008935, allocations: 0 / 0.9887 GB, free: 10.24 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.11e-05/0.008966, allocations: 11.98 kB / 0.9887 GB, free: 10.23 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.473e-06/0.008973, allocations: 7.984 kB / 0.9887 GB, free: 10.22 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.532e-05/0.009028, allocations: 119.9 kB / 0.9888 GB, free: 10.1 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.009028, allocations: 0 / 0.9888 GB, free: 10.1 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001794/0.009208, allocations: 48 kB / 0.9888 GB, free: 10.05 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: 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.0003586/0.009566, allocations: 0.7121 MB / 0.9895 GB, free: 9.32 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003679/0.009934, allocations: 439.1 kB / 0.99 GB, free: 8.836 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.009936, allocations: 0 / 0.99 GB, free: 8.836 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.345e-05/0.009989, allocations: 43.92 kB / 0.99 GB, free: 8.793 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.01017, allocations: 34.92 kB / 0.99 GB, free: 8.762 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.01211, allocations: 2.62 MB / 0.9926 GB, free: 5.926 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.425e-05/0.01217, allocations: 94.77 kB / 0.9927 GB, free: 5.812 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.489e-05/0.0122, allocations: 16.64 kB / 0.9927 GB, free: 5.797 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.838e-05/0.01225, allocations: 44.48 kB / 0.9927 GB, free: 5.754 MB / 0.948 GB Notification: Performance of SimCode: time 5.71e-07/0.01225, allocations: 0 / 0.9927 GB, free: 5.754 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01716/0.02941, allocations: 5.208 MB / 0.9978 GB, free: 0.7539 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.804/6.834, allocations: 11.94 kB / 0.9978 GB, free: 0.7422 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u3 in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u3 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.y in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.y from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.97455330286175]