Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 104.2 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.689/2.689, allocations: 476.7 MB / 0.7611 GB, free: 11.29 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 73.23 kB / 1.104 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.352, allocations: 168.7 MB / 1.269 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002272/0.3543, allocations: 0.7596 MB / 1.269 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001691/0.356, allocations: 1.16 MB / 1.271 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.482e-05/0.3561, allocations: 3.938 kB / 1.271 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.608e-05/0.3561, allocations: 7.922 kB / 1.271 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.785e-05/0.3562, allocations: 11.88 kB / 1.271 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005683/0.3568, allocations: 138.4 kB / 1.271 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.357, allocations: 123.8 kB / 1.271 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.3571, allocations: 20.17 kB / 1.271 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.3572, allocations: 43.91 kB / 1.271 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.3573, allocations: 51.81 kB / 1.271 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.3573, allocations: 12 kB / 1.271 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.871e-05/0.3574, allocations: 27.98 kB / 1.271 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.624e-05/0.3575, allocations: 15.92 kB / 1.271 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.876e-05/0.3575, allocations: 51.83 kB / 1.271 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.3577, allocations: 119.8 kB / 1.271 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3577, allocations: 4 kB / 1.271 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.435e-06/0.3577, allocations: 0 / 1.271 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.972e-06/0.3578, allocations: 4 kB / 1.271 GB, free: 10.27 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006793/0.3584, allocations: 424.8 kB / 1.272 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.3585, allocations: 12.03 kB / 1.272 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.433e-05/0.3585, allocations: 34.69 kB / 1.272 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.485e-05/0.3586, allocations: 12.89 kB / 1.272 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.3587, allocations: 164.4 kB / 1.272 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.3587, allocations: 12.38 kB / 1.272 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.897e-05/0.3588, allocations: 8.375 kB / 1.272 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.359, allocations: 85.84 kB / 1.272 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.359, allocations: 0 / 1.272 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.359, allocations: 0 / 1.272 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.359, allocations: 0 / 1.272 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/0.3592, allocations: 47.95 kB / 1.272 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005796/0.3598, allocations: 352.5 kB / 1.272 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001766/0.3599, allocations: 50.55 kB / 1.272 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.854e-05/0.36, allocations: 28.97 kB / 1.272 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.3601, allocations: 4 kB / 1.272 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002653/0.3603, allocations: 99.33 kB / 1.272 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.593e-06/0.3603, allocations: 0 / 1.272 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004593/0.3608, allocations: 149.6 kB / 1.273 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.3608, allocations: 51.41 kB / 1.273 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.361, allocations: 122.2 kB / 1.273 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.361, allocations: 33.7 kB / 1.273 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.466e-05/0.3611, allocations: 96.09 kB / 1.273 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.3611, allocations: 11.89 kB / 1.273 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-05/0.3612, allocations: 41.69 kB / 1.273 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3613, allocations: 322.8 kB / 1.273 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.3615, allocations: 51.95 kB / 1.273 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.3617, allocations: 100.7 kB / 1.273 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.362, allocations: 154.7 kB / 1.274 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.362, allocations: 0 / 1.274 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004567/0.3624, allocations: 211.1 kB / 1.274 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.533e-05/0.3625, allocations: 37.69 kB / 1.274 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.3625, allocations: 4 kB / 1.274 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3625, allocations: 4.156 kB / 1.274 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.3626, allocations: 19.92 kB / 1.274 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.3626, allocations: 4 kB / 1.274 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.3628, allocations: 43.84 kB / 1.274 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.3629, allocations: 11.94 kB / 1.274 GB, free: 7.227 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001132/0.363, allocations: 117.8 kB / 1.274 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.364e-05/0.363, allocations: 4 kB / 1.274 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003193/0.3633, allocations: 129.9 kB / 1.274 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.3633, allocations: 0 / 1.274 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3633, allocations: 0 / 1.274 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.3633, allocations: 4 kB / 1.274 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004736/0.3638, allocations: 374.4 kB / 1.275 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3638, allocations: 4 kB / 1.275 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.75e-05/0.3639, allocations: 11.94 kB / 1.275 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.3639, allocations: 0 / 1.275 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.3639, allocations: 15.92 kB / 1.275 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.3639, allocations: 3.938 kB / 1.275 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3639, allocations: 0 / 1.275 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003182/0.3642, allocations: 204 kB / 1.275 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.947e-05/0.3643, allocations: 93 kB / 1.275 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.3643, allocations: 0 / 1.275 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.649e-05/0.3644, allocations: 11.92 kB / 1.275 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.966e-05/0.3644, allocations: 7.984 kB / 1.275 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.3644, allocations: 4.047 kB / 1.275 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.44e-05/0.3645, allocations: 99.42 kB / 1.275 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3645, allocations: 0 / 1.275 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002706/0.3647, allocations: 23.95 kB / 1.275 GB, free: 6.027 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.0006835/0.3654, allocations: 0.7655 MB / 1.276 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003846/0.3658, allocations: 163.5 kB / 1.276 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3658, allocations: 4.125 kB / 1.276 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.3659, allocations: 35.92 kB / 1.276 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.3662, allocations: 17.98 kB / 1.276 GB, free: 5.012 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002243/0.3685, allocations: 1.721 MB / 1.278 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.3688, allocations: 0.6924 MB / 1.278 GB, free: 2.457 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.619e-05/0.3688, allocations: 4 kB / 1.278 GB, free: 2.453 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.768e-05/0.3689, allocations: 27.36 kB / 1.278 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of SimCode: time 8.61e-07/0.3689, allocations: 0 / 1.278 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.3936, allocations: 2.572 MB / 1.281 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.274/8.667, allocations: 2.25 kB / 1.281 GB, free: 15.98 MB / 0.9981 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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: 14.940788025036454]