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.001382/0.001382, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.002012/0.002012, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 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 1.49/1.49, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.169/3.169, allocations: 0.4892 GB / 0.7944 GB, free: 35.59 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 70.98 kB / 1.153 GB, free: 25.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3349, allocations: 176.1 MB / 1.325 GB, free: 2.359 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001924/0.3368, allocations: 0.6811 MB / 1.326 GB, free: 1.684 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001652/0.3385, allocations: 1.28 MB / 1.327 GB, free: 400 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.876e-05/0.3385, allocations: 0 / 1.327 GB, free: 400 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.995e-05/0.3385, allocations: 11.92 kB / 1.327 GB, free: 388 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.184e-05/0.3386, allocations: 19.8 kB / 1.327 GB, free: 368 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007956/0.3394, allocations: 316.2 kB / 1.327 GB, free: 60 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003438/0.3398, allocations: 251.6 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.112e-05/0.3398, allocations: 12.17 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.34, allocations: 99.86 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.3401, allocations: 83.69 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.886e-05/0.3402, allocations: 24 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.023e-05/0.3403, allocations: 35.92 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.919e-05/0.3403, allocations: 23.92 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.3404, allocations: 79.8 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002835/0.3407, allocations: 223.6 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3407, allocations: 0 / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3407, allocations: 0 / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.3407, allocations: 0 / 1.328 GB, free: 15.24 MB / 1.029 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.0005871/0.3413, allocations: 423.1 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3413, allocations: 12.03 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.189e-05/0.3414, allocations: 30.75 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.451e-05/0.3414, allocations: 16.89 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.3415, allocations: 114.5 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.3416, allocations: 20.31 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.975e-05/0.3416, allocations: 12.38 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001292/0.3417, allocations: 57.98 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.3418, allocations: 0 / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.3418, allocations: 4 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.3418, allocations: 0 / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.714e-05/0.3418, allocations: 23.98 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005497/0.3424, allocations: 343.7 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 6.924e-05/0.3424, allocations: 34.5 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.468e-05/0.3425, allocations: 16.86 kB / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.3425, allocations: 7.938 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002177/0.3427, allocations: 111.3 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.3427, allocations: 0 / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0003112/0.343, allocations: 137.5 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.3431, allocations: 55.41 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.3432, allocations: 132.6 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.973e-05/0.3432, allocations: 34.08 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.868e-05/0.3433, allocations: 100.1 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.3433, allocations: 23.92 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.3435, allocations: 65.67 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3436, allocations: 334.7 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002622/0.3439, allocations: 181 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002835/0.3441, allocations: 228.7 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002885/0.3444, allocations: 231 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3444, allocations: 0 / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006728/0.3451, allocations: 478 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.218e-05/0.3452, allocations: 97.09 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3452, allocations: 0 / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.3452, allocations: 4 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.524e-05/0.3452, allocations: 7.922 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.3452, allocations: 4 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/0.3457, allocations: 87.98 kB / 1.331 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.3458, allocations: 15.98 kB / 1.331 GB, free: 11.51 MB / 1.029 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 0.0001261/0.3459, allocations: 132.5 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.9e-05/0.3459, allocations: 7.953 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.218e-05/0.3459, allocations: 16.36 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3459, allocations: 0 / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3459, allocations: 0 / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.3459, allocations: 4 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001522/0.3461, allocations: 160.6 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3461, allocations: 4 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.819e-06/0.3461, allocations: 0 / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3461, allocations: 0 / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.3461, allocations: 11.97 kB / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3461, allocations: 0 / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3461, allocations: 0 / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002077/0.3463, allocations: 148.9 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.565e-05/0.3463, allocations: 11.89 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.855e-05/0.3464, allocations: 3.984 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.841e-05/0.3464, allocations: 12 kB / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.308e-05/0.3464, allocations: 7.984 kB / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.3464, allocations: 8 kB / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.233e-05/0.3465, allocations: 95.27 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3465, allocations: 0 / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002627/0.3468, allocations: 44.09 kB / 1.332 GB, free: 10.78 MB / 1.029 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.0005396/0.3473, allocations: 0.6839 MB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005267/0.3478, allocations: 423.3 kB / 1.333 GB, free: 9.602 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.3478, allocations: 0 / 1.333 GB, free: 9.602 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.419e-05/0.3479, allocations: 35.92 kB / 1.333 GB, free: 9.566 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.3482, allocations: 19.98 kB / 1.333 GB, free: 9.547 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002898/0.3511, allocations: 2.425 MB / 1.336 GB, free: 6.906 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.355e-05/0.3512, allocations: 84.02 kB / 1.336 GB, free: 6.801 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.67e-05/0.3512, allocations: 8.422 kB / 1.336 GB, free: 6.793 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.772e-05/0.3513, allocations: 23.44 kB / 1.336 GB, free: 6.77 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3513, allocations: 288 / 1.336 GB, free: 6.77 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03313/0.3844, allocations: 4.694 MB / 1.34 GB, free: 2.262 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.88, allocations: 2.5 kB / 1.34 GB, free: 2.262 MB / 1.029 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.65818533813581]