Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.001794/0.001794, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002447/0.002447, allocations: 216 kB / 22.26 MB, free: 5.113 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.496/1.496, allocations: 230.6 MB / 256 MB, free: 8.027 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.176/3.176, allocations: 0.49 GB / 0.7951 GB, free: 33.39 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.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.002173/0.002173, allocations: 67.28 kB / 1.154 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3839, allocations: 176.1 MB / 1.326 GB, free: 2.02 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002352/0.3862, allocations: 0.7664 MB / 1.327 GB, free: 1.258 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001624/0.3879, allocations: 1.112 MB / 1.328 GB, free: 136 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.098e-05/0.3879, allocations: 0 / 1.328 GB, free: 136 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.537e-05/0.388, allocations: 3.938 kB / 1.328 GB, free: 132 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.286e-05/0.388, allocations: 15.86 kB / 1.328 GB, free: 116 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003284/0.3884, allocations: 55.83 kB / 1.328 GB, free: 60 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001805/0.3885, allocations: 71.77 kB / 1.328 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.3887, allocations: 12.19 kB / 1.328 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.475e-05/0.3888, allocations: 27.92 kB / 1.328 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.591e-05/0.3888, allocations: 35.83 kB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.3889, allocations: 8 kB / 1.328 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.228e-05/0.3889, allocations: 23.98 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.389, allocations: 11.98 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.334e-05/0.389, allocations: 35.8 kB / 1.328 GB, free: 15.83 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000185/0.3892, allocations: 91.83 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3892, allocations: 0 / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.685e-06/0.3892, allocations: 0 / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.3892, allocations: 0 / 1.328 GB, free: 15.74 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000625/0.3898, allocations: 302.1 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.3899, allocations: 12.03 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.104e-05/0.39, allocations: 34.75 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.39, allocations: 8.891 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.3901, allocations: 114.4 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.3901, allocations: 8.375 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.3901, allocations: 8.375 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.3904, allocations: 69.91 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.3904, allocations: 4 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.3904, allocations: 4 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3904, allocations: 0 / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.3906, allocations: 47.89 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007027/0.3913, allocations: 303.7 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001774/0.3914, allocations: 46.56 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.3915, allocations: 28.95 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.976e-05/0.3916, allocations: 4 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002706/0.3918, allocations: 79.36 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.3918, allocations: 0 / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004467/0.3923, allocations: 137.6 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/0.3924, allocations: 51.41 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.3925, allocations: 125.8 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.342e-05/0.3925, allocations: 29.7 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.057e-05/0.3926, allocations: 96.08 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.3926, allocations: 15.91 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.181e-05/0.3927, allocations: 25.7 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002489/0.3929, allocations: 326.8 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.393, allocations: 27.98 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.3932, allocations: 73.98 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.3934, allocations: 109.8 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.3934, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003117/0.3937, allocations: 133.5 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3937, allocations: 8 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.3937, allocations: 0 / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.3938, allocations: 4 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.3939, allocations: 19.92 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3939, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.654e-05/0.394, allocations: 19.92 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.394, allocations: 4 kB / 1.33 GB, free: 13.27 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: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001084/0.3941, allocations: 126.4 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.506e-05/0.3941, allocations: 7.953 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.125e-05/0.3942, allocations: 8.375 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3942, allocations: 4 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.3942, allocations: 3.984 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3942, allocations: 0 / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004987/0.3947, allocations: 337.5 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3947, allocations: 11.94 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.486e-05/0.3947, allocations: 7.984 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.3947, allocations: 0 / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.3947, allocations: 7.938 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.3947, allocations: 7.938 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3947, allocations: 0 / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003097/0.3951, allocations: 203.4 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.421e-05/0.3951, allocations: 15.83 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.3951, allocations: 4 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.639e-05/0.3952, allocations: 11.92 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.872e-05/0.3952, allocations: 7.984 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.3952, allocations: 4 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.415e-05/0.3953, allocations: 95.2 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3953, allocations: 0 / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002593/0.3955, allocations: 16 kB / 1.331 GB, free: 12.33 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006882/0.3962, allocations: 0.732 MB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002819/0.3965, allocations: 76.48 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3965, allocations: 4 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.3966, allocations: 27.92 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.3969, allocations: 19.92 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.3989, allocations: 1.524 MB / 1.333 GB, free: 9.805 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.3993, allocations: 0.6924 MB / 1.334 GB, free: 9.086 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.725e-05/0.3993, allocations: 4 kB / 1.334 GB, free: 9.082 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.382e-05/0.3993, allocations: 23.42 kB / 1.334 GB, free: 9.059 MB / 1.029 GB Notification: Performance of SimCode: time 4.1e-07/0.3994, allocations: 4 kB / 1.334 GB, free: 9.055 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03074/0.4301, allocations: 2.238 MB / 1.336 GB, free: 6.953 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.21, allocations: 4.953 kB / 1.336 GB, free: 6.949 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable samTri.y in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri1.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.200282731000698]