Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009486/0.0009486, 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.001012/0.001012, 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.8566/0.8566, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.734/1.734, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.675e-06/2.675e-06, allocations: 0 / 0.9997 GB, free: 13.47 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.955e-05/2.222e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.47 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001485/0.001507, allocations: 0.7994 MB / 1 GB, free: 12.67 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001228/0.002735, allocations: 1.315 MB / 1.002 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.584e-05/0.002791, allocations: 4 kB / 1.002 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.318e-05/0.002824, allocations: 7.875 kB / 1.002 GB, free: 11.33 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.836e-05/0.002903, allocations: 31.72 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005909/0.003494, allocations: 328.1 kB / 1.002 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002298/0.003724, allocations: 291.4 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.838e-05/0.003822, allocations: 25.62 kB / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.003957, allocations: 167.7 kB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.004077, allocations: 87.78 kB / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.424e-05/0.004111, allocations: 28 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.402e-05/0.004175, allocations: 39.98 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.408e-05/0.004199, allocations: 23.91 kB / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 7.335e-05/0.004272, allocations: 91.8 kB / 1.003 GB, free: 10.24 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.000261/0.004533, allocations: 307.3 kB / 1.003 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.004535, allocations: 0 / 1.003 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.21e-07/0.004536, allocations: 0 / 1.003 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.00454, allocations: 0 / 1.003 GB, free: 9.941 MB / 0.9636 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.0004623/0.005002, allocations: 462.8 kB / 1.004 GB, free: 9.441 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.005039, allocations: 12.75 kB / 1.004 GB, free: 9.43 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.724e-05/0.005066, allocations: 38.75 kB / 1.004 GB, free: 9.383 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.847e-05/0.005114, allocations: 20.84 kB / 1.004 GB, free: 9.363 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.559e-05/0.00519, allocations: 134.1 kB / 1.004 GB, free: 9.207 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.005211, allocations: 12.38 kB / 1.004 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.005241, allocations: 24.12 kB / 1.004 GB, free: 9.172 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.005363, allocations: 87.88 kB / 1.004 GB, free: 9.082 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.00537, allocations: 0 / 1.004 GB, free: 9.082 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.00538, allocations: 4 kB / 1.004 GB, free: 9.078 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.005385, allocations: 4 kB / 1.004 GB, free: 9.074 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.486e-05/0.00546, allocations: 51.88 kB / 1.004 GB, free: 9.023 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004564/0.005916, allocations: 407.5 kB / 1.004 GB, free: 8.582 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001647/0.006081, allocations: 70.61 kB / 1.004 GB, free: 8.504 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.561e-05/0.006116, allocations: 32.91 kB / 1.004 GB, free: 8.469 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.006125, allocations: 0 / 1.004 GB, free: 8.469 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001504/0.006275, allocations: 115.4 kB / 1.005 GB, free: 8.344 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.006276, allocations: 0 / 1.005 GB, free: 8.344 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14): time 0.0002752/0.006551, allocations: 169.5 kB / 1.005 GB, free: 8.172 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.006588, allocations: 63.39 kB / 1.005 GB, free: 8.098 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.006688, allocations: 158.3 kB / 1.005 GB, free: 7.934 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.00672, allocations: 33.7 kB / 1.005 GB, free: 7.895 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.617e-05/0.006776, allocations: 116 kB / 1.005 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.006796, allocations: 31.75 kB / 1.005 GB, free: 7.746 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.052e-05/0.006877, allocations: 77.66 kB / 1.005 GB, free: 7.664 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.77e-05/0.006954, allocations: 326.8 kB / 1.005 GB, free: 7.336 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.007123, allocations: 185 kB / 1.006 GB, free: 7.137 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.0073, allocations: 239.7 kB / 1.006 GB, free: 6.863 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002095/0.00751, allocations: 260.2 kB / 1.006 GB, free: 6.57 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.007512, allocations: 4 kB / 1.006 GB, free: 6.566 MB / 0.9636 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004358/0.007948, allocations: 0.4896 MB / 1.007 GB, free: 6.035 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 4.952e-05/0.007998, allocations: 105 kB / 1.007 GB, free: 5.914 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.008003, allocations: 4 kB / 1.007 GB, free: 5.91 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.008015, allocations: 4 kB / 1.007 GB, free: 5.906 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.662e-05/0.008052, allocations: 8 kB / 1.007 GB, free: 5.898 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.008056, allocations: 0 / 1.007 GB, free: 5.898 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002361/0.008292, allocations: 87.98 kB / 1.007 GB, free: 5.812 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.638e-05/0.008319, allocations: 23.97 kB / 1.007 GB, free: 5.789 MB / 0.9636 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 8.902e-05/0.008408, allocations: 141.8 kB / 1.007 GB, free: 5.641 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.224e-05/0.00842, allocations: 11.91 kB / 1.007 GB, free: 5.629 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.49e-05/0.008445, allocations: 20.7 kB / 1.007 GB, free: 5.609 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.008447, allocations: 4 kB / 1.007 GB, free: 5.605 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.008452, allocations: 0 / 1.007 GB, free: 5.605 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.008456, allocations: 3.984 kB / 1.007 GB, free: 5.602 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.008568, allocations: 176.7 kB / 1.007 GB, free: 5.387 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.008569, allocations: 0 / 1.007 GB, free: 5.387 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.08e-05/0.00859, allocations: 8 kB / 1.007 GB, free: 5.379 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.008592, allocations: 0 / 1.007 GB, free: 5.379 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.008602, allocations: 15.86 kB / 1.007 GB, free: 5.363 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.008603, allocations: 0 / 1.007 GB, free: 5.363 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.008603, allocations: 0 / 1.007 GB, free: 5.363 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001458/0.008749, allocations: 168 kB / 1.007 GB, free: 5.184 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.422e-05/0.008763, allocations: 19.84 kB / 1.007 GB, free: 5.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.008776, allocations: 3.938 kB / 1.007 GB, free: 5.16 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.541e-05/0.008792, allocations: 0 / 1.007 GB, free: 5.16 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.042e-05/0.008822, allocations: 15.97 kB / 1.007 GB, free: 5.145 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.008828, allocations: 8 kB / 1.007 GB, free: 5.137 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 5.294e-05/0.008881, allocations: 120.1 kB / 1.007 GB, free: 5.02 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5.1e-08/0.008881, allocations: 3.938 kB / 1.008 GB, free: 5.016 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001733/0.009055, allocations: 48 kB / 1.008 GB, free: 4.969 MB / 0.9636 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.0003497/0.009404, allocations: 0.706 MB / 1.008 GB, free: 4.23 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003395/0.009744, allocations: 439.1 kB / 1.009 GB, free: 3.746 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.009746, allocations: 0 / 1.009 GB, free: 3.746 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.951e-05/0.009795, allocations: 39.98 kB / 1.009 GB, free: 3.707 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001738/0.009969, allocations: 31.92 kB / 1.009 GB, free: 3.676 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.01183, allocations: 2.625 MB / 1.011 GB, free: 0.8438 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.899e-05/0.01188, allocations: 94.77 kB / 1.011 GB, free: 0.7305 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.154e-05/0.01191, allocations: 12.64 kB / 1.011 GB, free: 0.7148 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.565e-05/0.01196, allocations: 40.48 kB / 1.011 GB, free: 0.6758 MB / 0.9636 GB Notification: Performance of SimCode: time 3.81e-07/0.01196, allocations: 3.938 kB / 1.011 GB, free: 0.6719 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01576/0.02772, allocations: 5.219 MB / 1.017 GB, free: 11.65 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.58/6.607, allocations: 7.5 kB / 1.017 GB, free: 11.64 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.585709799081087]