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.0008517/0.0008517, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0008677/0.0008677, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8919/0.8919, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.716/1.716, allocations: 377.8 MB / 0.6221 GB, free: 8.656 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.946e-06/2.946e-06, allocations: 0 / 0.981 GB, free: 2.551 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.562e-05, allocations: 4.953 kB / 0.981 GB, free: 2.547 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002007/0.002033, allocations: 0.8091 MB / 0.9818 GB, free: 1.738 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001876/0.003909, allocations: 1.31 MB / 0.983 GB, free: 424 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.221e-05/0.003991, allocations: 0 / 0.983 GB, free: 424 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 5.129e-05/0.004043, allocations: 19.8 kB / 0.9831 GB, free: 404 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0001033/0.004146, allocations: 19.8 kB / 0.9831 GB, free: 384 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.005211, allocations: 331 kB / 0.9834 GB, free: 60 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002798/0.00549, allocations: 291.5 kB / 0.9837 GB, free: 15.77 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.005614, allocations: 37.53 kB / 0.9837 GB, free: 15.73 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002476/0.005861, allocations: 155.8 kB / 0.9839 GB, free: 15.58 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.005998, allocations: 95.72 kB / 0.984 GB, free: 15.49 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.006033, allocations: 24 kB / 0.984 GB, free: 15.46 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.857e-05/0.006102, allocations: 39.92 kB / 0.984 GB, free: 15.43 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.9e-05/0.006131, allocations: 23.92 kB / 0.984 GB, free: 15.4 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 8.256e-05/0.006213, allocations: 87.84 kB / 0.9841 GB, free: 15.32 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002861/0.006499, allocations: 307.2 kB / 0.9844 GB, free: 15.02 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.006503, allocations: 4 kB / 0.9844 GB, free: 15.01 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.763e-06/0.006504, allocations: 0 / 0.9844 GB, free: 15.01 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.006509, allocations: 0 / 0.9844 GB, free: 15.01 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.000537/0.007046, allocations: 466.8 kB / 0.9849 GB, free: 14.51 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.007086, allocations: 12.03 kB / 0.9849 GB, free: 14.5 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.007e-05/0.007116, allocations: 38.73 kB / 0.9849 GB, free: 14.45 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.545e-05/0.007172, allocations: 20.89 kB / 0.9849 GB, free: 14.43 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.842e-05/0.00726, allocations: 126.1 kB / 0.985 GB, free: 14.28 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.719e-05/0.007287, allocations: 20.38 kB / 0.9851 GB, free: 14.26 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.055e-05/0.007318, allocations: 28.11 kB / 0.9851 GB, free: 14.23 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.007461, allocations: 88.06 kB / 0.9852 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.007468, allocations: 3.938 kB / 0.9852 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.007478, allocations: 4 kB / 0.9852 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.007484, allocations: 4 kB / 0.9852 GB, free: 14.13 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.664e-05/0.00756, allocations: 43.97 kB / 0.9852 GB, free: 14.09 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005011/0.008061, allocations: 415.5 kB / 0.9856 GB, free: 13.64 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.008249, allocations: 66.62 kB / 0.9857 GB, free: 13.57 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.057e-05/0.00829, allocations: 24.84 kB / 0.9857 GB, free: 13.54 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.0083, allocations: 4 kB / 0.9857 GB, free: 13.54 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001852/0.008485, allocations: 118.6 kB / 0.9858 GB, free: 13.41 MB / 0.948 GB Notification: Performance of pre-optimization done (n=14): time 2.104e-06/0.008488, allocations: 0 / 0.9858 GB, free: 13.41 MB / 0.948 GB Notification: Performance of matching and sorting (n=14): time 0.0002808/0.008768, allocations: 173.6 kB / 0.986 GB, free: 13.23 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.008806, allocations: 59.41 kB / 0.9861 GB, free: 13.16 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.008912, allocations: 164.7 kB / 0.9862 GB, free: 13 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.00894, allocations: 33.69 kB / 0.9862 GB, free: 12.96 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.849e-05/0.008998, allocations: 108 kB / 0.9863 GB, free: 12.85 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.009023, allocations: 39.72 kB / 0.9864 GB, free: 12.81 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.479e-05/0.009108, allocations: 73.67 kB / 0.9865 GB, free: 12.73 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.605e-05/0.009194, allocations: 326.8 kB / 0.9868 GB, free: 12.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.009384, allocations: 185 kB / 0.9869 GB, free: 12.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003279/0.009712, allocations: 240.1 kB / 0.9872 GB, free: 11.93 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.009917, allocations: 251 kB / 0.9874 GB, free: 11.65 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.009921, allocations: 4 kB / 0.9874 GB, free: 11.64 MB / 0.948 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000454/0.01038, allocations: 499.5 kB / 0.9879 GB, free: 11.11 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.078e-05/0.01043, allocations: 101 kB / 0.988 GB, free: 11 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.01043, allocations: 4 kB / 0.988 GB, free: 10.99 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.01044, allocations: 0 / 0.988 GB, free: 10.99 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.4e-05/0.01049, allocations: 15.92 kB / 0.988 GB, free: 10.98 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.01049, allocations: 4 kB / 0.988 GB, free: 10.97 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.01074, allocations: 87.92 kB / 0.9881 GB, free: 10.89 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.01077, 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.396e-05/0.01086, allocations: 134.3 kB / 0.9882 GB, free: 10.73 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/0.01088, allocations: 11.95 kB / 0.9883 GB, free: 10.71 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.365e-05/0.01091, allocations: 20.7 kB / 0.9883 GB, free: 10.7 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.01091, allocations: 4 kB / 0.9883 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.01092, allocations: 0 / 0.9883 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.01092, allocations: 0 / 0.9883 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001238/0.01104, allocations: 188.6 kB / 0.9885 GB, free: 10.46 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01105, allocations: 0 / 0.9885 GB, free: 10.46 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.745e-05/0.01107, allocations: 11.98 kB / 0.9885 GB, free: 10.45 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.01108, allocations: 0 / 0.9885 GB, free: 10.45 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.01109, allocations: 7.922 kB / 0.9885 GB, free: 10.45 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.01109, allocations: 8 kB / 0.9885 GB, free: 10.44 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01109, allocations: 3.938 kB / 0.9885 GB, free: 10.43 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/0.01127, allocations: 160.9 kB / 0.9886 GB, free: 10.26 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.75e-05/0.01128, allocations: 11.89 kB / 0.9887 GB, free: 10.25 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.925e-05/0.0113, allocations: 15.92 kB / 0.9887 GB, free: 10.23 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.119e-05/0.01133, allocations: 0 / 0.9887 GB, free: 10.23 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.01137, allocations: 15.98 kB / 0.9887 GB, free: 10.21 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.01137, allocations: 4 kB / 0.9887 GB, free: 10.21 MB / 0.948 GB Notification: Performance of sorting global known variables: time 6.1e-05/0.01143, allocations: 117.2 kB / 0.9888 GB, free: 10.1 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.01143, allocations: 0 / 0.9888 GB, free: 10.1 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002093/0.01164, allocations: 51.95 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.0004371/0.01208, allocations: 0.7075 MB / 0.9895 GB, free: 9.312 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0004109/0.01249, allocations: 431.2 kB / 0.9899 GB, free: 8.836 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01249, allocations: 384 / 0.9899 GB, free: 8.836 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.769e-05/0.01255, allocations: 47.92 kB / 0.99 GB, free: 8.789 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.01278, allocations: 33.67 kB / 0.99 GB, free: 8.758 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002228/0.01501, allocations: 2.622 MB / 0.9926 GB, free: 5.918 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.81e-05/0.01507, allocations: 94.78 kB / 0.9927 GB, free: 5.805 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 4.35e-05/0.01512, allocations: 12.64 kB / 0.9927 GB, free: 5.793 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.972e-05/0.01518, allocations: 44.48 kB / 0.9927 GB, free: 5.75 MB / 0.948 GB Notification: Performance of SimCode: time 5.81e-07/0.01518, allocations: 0 / 0.9927 GB, free: 5.75 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.03535, allocations: 5.214 MB / 0.9978 GB, free: 0.7422 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.754/6.79, allocations: 12.34 kB / 0.9978 GB, free: 0.7383 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.823733059689403]