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.001627/0.001627, allocations: 103 kB / 16.45 MB, free: 6.449 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.002109/0.002109, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.529/1.529, allocations: 230.6 MB / 252.8 MB, free: 9.133 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.235/3.235, allocations: 0.49 GB / 0.7916 GB, free: 33.28 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.00208/0.00208, allocations: 70.72 kB / 1.149 GB, free: 26.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4137/0.4157, allocations: 176.1 MB / 1.321 GB, free: 3.367 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002464/0.4182, allocations: 0.6946 MB / 1.321 GB, free: 2.672 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002099/0.4203, allocations: 1.307 MB / 1.323 GB, free: 1.352 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.136e-05/0.4204, allocations: 0 / 1.323 GB, free: 1.352 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.576e-05/0.4204, allocations: 7.875 kB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.4205, allocations: 23.84 kB / 1.323 GB, free: 1.32 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009314/0.4215, allocations: 308.2 kB / 1.323 GB, free: 1.027 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.4218, allocations: 259.6 kB / 1.323 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.422, allocations: 12.17 kB / 1.323 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.4221, allocations: 103.8 kB / 1.323 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000248/0.4224, allocations: 87.8 kB / 1.324 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 7.086e-05/0.4225, allocations: 24 kB / 1.324 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.4226, allocations: 35.98 kB / 1.324 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.826e-05/0.4226, allocations: 15.92 kB / 1.324 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.4228, allocations: 87.73 kB / 1.324 GB, free: 420 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003616/0.4231, allocations: 223.6 kB / 1.324 GB, free: 196 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.4231, allocations: 0 / 1.324 GB, free: 196 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.353e-06/0.4231, allocations: 4 kB / 1.324 GB, free: 192 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.4231, allocations: 3.938 kB / 1.324 GB, free: 188 kB / 1.014 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.0008214/0.424, allocations: 496.2 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.424, allocations: 15.98 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.876e-05/0.4241, allocations: 34.73 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.306e-05/0.4241, allocations: 16.89 kB / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.4244, allocations: 175.1 kB / 1.325 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.4244, allocations: 4.375 kB / 1.325 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.074e-05/0.4244, allocations: 24.36 kB / 1.325 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001438/0.4246, allocations: 61.98 kB / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.4246, allocations: 0 / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.4246, allocations: 3.984 kB / 1.325 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.4246, allocations: 4 kB / 1.325 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.581e-05/0.4247, allocations: 19.92 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000644/0.4253, allocations: 416.5 kB / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 7.208e-05/0.4254, allocations: 30.56 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.671e-05/0.4254, allocations: 16.86 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-06/0.4254, allocations: 0 / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001835/0.4256, allocations: 115.3 kB / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.4256, allocations: 0 / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0003409/0.426, allocations: 137.5 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.426, allocations: 55.41 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.4262, allocations: 125.8 kB / 1.326 GB, free: 14.25 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.727e-05/0.4262, allocations: 45.69 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.821e-05/0.4263, allocations: 100.2 kB / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.617e-05/0.4263, allocations: 19.86 kB / 1.326 GB, free: 14.08 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.4265, allocations: 69.61 kB / 1.326 GB, free: 14 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001561/0.4266, allocations: 322.8 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.4268, allocations: 91.94 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/0.4271, allocations: 141.9 kB / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.4274, allocations: 234.7 kB / 1.327 GB, free: 13.16 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4274, allocations: 0 / 1.327 GB, free: 13.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000688/0.4281, allocations: 386.4 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.011e-05/0.4282, allocations: 101.1 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4282, allocations: 0 / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.4282, allocations: 4 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.172e-05/0.4282, allocations: 0 / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.4283, allocations: 4 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004989/0.4288, allocations: 83.98 kB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.456e-05/0.4288, allocations: 19.98 kB / 1.327 GB, free: 12.54 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.0001477/0.4289, allocations: 137.7 kB / 1.327 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.993e-05/0.429, allocations: 7.953 kB / 1.327 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.429, allocations: 12.38 kB / 1.327 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.429, allocations: 0 / 1.327 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.429, allocations: 0 / 1.327 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.429, allocations: 0 / 1.327 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.4292, allocations: 193.6 kB / 1.327 GB, free: 12.13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.4292, allocations: 0 / 1.327 GB, free: 12.13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.32e-05/0.4292, allocations: 4 kB / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.4292, allocations: 0 / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.4292, allocations: 3.984 kB / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.4292, allocations: 4.375 kB / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4292, allocations: 4 kB / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.4295, allocations: 140.9 kB / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.884e-05/0.4295, allocations: 89 kB / 1.328 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.4295, allocations: 3.984 kB / 1.328 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.624e-05/0.4296, allocations: 4 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.4296, allocations: 11.98 kB / 1.328 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.752e-06/0.4296, allocations: 3.938 kB / 1.328 GB, free: 11.83 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.414e-05/0.4297, allocations: 97.52 kB / 1.328 GB, free: 11.73 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.4297, allocations: 4 kB / 1.328 GB, free: 11.73 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003021/0.43, allocations: 44 kB / 1.328 GB, free: 11.69 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.000625/0.4306, allocations: 0.6786 MB / 1.329 GB, free: 10.98 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005212/0.4311, allocations: 330.2 kB / 1.329 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4311, allocations: 0 / 1.329 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.886e-05/0.4312, allocations: 35.91 kB / 1.329 GB, free: 10.59 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/0.4315, allocations: 31.73 kB / 1.329 GB, free: 10.56 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/0.4344, allocations: 2.084 MB / 1.331 GB, free: 8.332 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/0.4348, allocations: 0.6963 MB / 1.332 GB, free: 7.609 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.988e-05/0.4348, allocations: 4.438 kB / 1.332 GB, free: 7.605 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.671e-05/0.4349, allocations: 31.42 kB / 1.332 GB, free: 7.574 MB / 1.029 GB Notification: Performance of SimCode: time 5.11e-07/0.4349, allocations: 0 / 1.332 GB, free: 7.574 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0303/0.4652, allocations: 3.834 MB / 1.335 GB, free: 3.855 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.063/8.528, allocations: 4.656 kB / 1.335 GB, free: 3.852 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.3543166059535]