Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.00196/0.00196, allocations: 101.2 kB / 16.45 MB, free: 6.5 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.001992/0.001992, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.533/1.533, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.268/3.268, allocations: 0.49 GB / 0.7916 GB, free: 33.43 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.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.002242/0.002242, allocations: 68.25 kB / 1.149 GB, free: 26.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.426/0.4283, allocations: 176.1 MB / 1.321 GB, free: 3.344 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001997/0.4303, allocations: 0.7696 MB / 1.322 GB, free: 2.582 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001668/0.4319, allocations: 1.198 MB / 1.323 GB, free: 1.371 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.385e-05/0.432, allocations: 0 / 1.323 GB, free: 1.371 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.505e-05/0.432, allocations: 3.938 kB / 1.323 GB, free: 1.367 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.784e-05/0.4321, allocations: 23.84 kB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005334/0.4327, allocations: 143.4 kB / 1.323 GB, free: 1.207 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.4329, allocations: 131.7 kB / 1.323 GB, free: 1.078 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.433, allocations: 12.19 kB / 1.323 GB, free: 1.062 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.4331, allocations: 51.91 kB / 1.323 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.4332, allocations: 51.8 kB / 1.323 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.174e-05/0.4332, allocations: 12 kB / 1.323 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.37e-05/0.4333, allocations: 27.98 kB / 1.323 GB, free: 0.9219 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.817e-05/0.4333, allocations: 15.98 kB / 1.323 GB, free: 0.9062 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.421e-05/0.4334, allocations: 51.78 kB / 1.323 GB, free: 0.8555 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002218/0.4336, allocations: 123.8 kB / 1.323 GB, free: 0.7344 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.4336, allocations: 0 / 1.323 GB, free: 0.7344 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.363e-06/0.4336, allocations: 0 / 1.323 GB, free: 0.7344 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.4336, allocations: 0 / 1.323 GB, free: 0.7344 MB / 1.014 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.0007119/0.4344, allocations: 424.8 kB / 1.324 GB, free: 272 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.4344, allocations: 11.98 kB / 1.324 GB, free: 260 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.836e-05/0.4345, allocations: 38.75 kB / 1.324 GB, free: 212 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.4346, allocations: 16.89 kB / 1.324 GB, free: 196 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.4347, allocations: 170.9 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.4348, allocations: 8.375 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.4348, allocations: 8.375 kB / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002451/0.435, allocations: 79.22 kB / 1.324 GB, free: 15.89 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.435, allocations: 3.984 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.4351, allocations: 4 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.4351, allocations: 0 / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002231/0.4353, allocations: 55.89 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005576/0.4358, allocations: 340.7 kB / 1.324 GB, free: 15.44 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.436, allocations: 50.55 kB / 1.324 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.4361, allocations: 32.91 kB / 1.325 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.4362, allocations: 11.92 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.4364, allocations: 95.3 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.4364, allocations: 0 / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004949/0.4369, allocations: 145.6 kB / 1.325 GB, free: 15.08 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.437, allocations: 59.41 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.4371, allocations: 121.8 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.4371, allocations: 29.7 kB / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.868e-05/0.4372, allocations: 92.09 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.083e-05/0.4372, allocations: 23.81 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.777e-05/0.4373, allocations: 37.7 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.4375, allocations: 322.8 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.4377, allocations: 51.97 kB / 1.325 GB, free: 14.31 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002097/0.4379, allocations: 93.11 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.4382, allocations: 150.7 kB / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4382, allocations: 0 / 1.326 GB, free: 14.03 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005028/0.4387, allocations: 215.1 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.659e-05/0.4387, allocations: 48.34 kB / 1.326 GB, free: 13.76 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.4388, allocations: 0 / 1.326 GB, free: 13.76 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.4388, allocations: 4 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.4389, allocations: 11.98 kB / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.4389, allocations: 4 kB / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002217/0.4391, allocations: 39.91 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.4391, allocations: 8 kB / 1.326 GB, free: 13.69 MB / 1.029 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.0001134/0.4393, allocations: 129.7 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.229e-05/0.4393, allocations: 0 / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003398/0.4396, allocations: 130.2 kB / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.4396, allocations: 0 / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4396, allocations: 0 / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4396, allocations: 3.938 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005102/0.4401, allocations: 394.3 kB / 1.327 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4401, allocations: 0 / 1.327 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.189e-05/0.4402, allocations: 11.98 kB / 1.327 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.4402, allocations: 0 / 1.327 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.4402, allocations: 4 kB / 1.327 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4402, allocations: 0 / 1.327 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.4402, allocations: 0 / 1.327 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.4406, allocations: 215.4 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.678e-05/0.4406, allocations: 85.06 kB / 1.327 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.4406, allocations: 8 kB / 1.327 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.93e-05/0.4407, allocations: 7.984 kB / 1.327 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.504e-05/0.4408, allocations: 11.97 kB / 1.327 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.4408, allocations: 0 / 1.327 GB, free: 12.6 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.197e-05/0.4408, allocations: 95.27 kB / 1.327 GB, free: 12.51 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4408, allocations: 0 / 1.327 GB, free: 12.51 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002766/0.4411, allocations: 31.95 kB / 1.327 GB, free: 12.48 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: 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.0007376/0.4419, allocations: 0.7475 MB / 1.328 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000418/0.4423, allocations: 167.3 kB / 1.328 GB, free: 11.53 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4423, allocations: 0 / 1.328 GB, free: 11.53 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.4424, allocations: 27.98 kB / 1.328 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.4427, allocations: 15.98 kB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/0.4451, allocations: 1.733 MB / 1.33 GB, free: 9.629 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.4455, allocations: 0.6885 MB / 1.33 GB, free: 8.914 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.171e-05/0.4455, allocations: 4 kB / 1.33 GB, free: 8.91 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.411e-05/0.4456, allocations: 27.42 kB / 1.33 GB, free: 8.883 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.4456, allocations: 0 / 1.33 GB, free: 8.883 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02545/0.471, allocations: 2.569 MB / 1.333 GB, free: 6.441 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.283/8.754, allocations: 16.45 kB / 1.333 GB, free: 6.43 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable booPul.y in file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv. Warning: Get data of variable booPul.y from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.828084243927151]