Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001339/0.001339, allocations: 113 kB / 18.94 MB, free: 2.934 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.001515/0.001515, allocations: 207.5 kB / 22.25 MB, free: 5.082 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.459/1.459, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.81/2.81, allocations: 476.8 MB / 0.7707 GB, free: 4.258 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002198/0.002198, allocations: 67.27 kB / 1.117 GB, free: 40.85 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3308, allocations: 170 MB / 1.283 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002044/0.3328, allocations: 0.7535 MB / 1.284 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001454/0.3343, allocations: 1.106 MB / 1.285 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.568e-05/0.3343, allocations: 4 kB / 1.285 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.292e-05/0.3344, allocations: 7.922 kB / 1.285 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.661e-05/0.3344, allocations: 11.88 kB / 1.285 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.3347, allocations: 55.77 kB / 1.285 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001318/0.3349, allocations: 75.77 kB / 1.285 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.335, allocations: 12.17 kB / 1.285 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.246e-05/0.3351, allocations: 27.92 kB / 1.285 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.507e-05/0.3351, allocations: 31.84 kB / 1.285 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.3351, allocations: 8 kB / 1.285 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.884e-05/0.3352, allocations: 23.92 kB / 1.285 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.554e-05/0.3352, allocations: 23.97 kB / 1.285 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.712e-05/0.3353, allocations: 31.8 kB / 1.286 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.3354, allocations: 75.97 kB / 1.286 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3354, allocations: 0 / 1.286 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3354, allocations: 0 / 1.286 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.3354, allocations: 0 / 1.286 GB, free: 9.516 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005696/0.336, allocations: 310 kB / 1.286 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.3361, allocations: 12.03 kB / 1.286 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.192e-05/0.3361, allocations: 30.75 kB / 1.286 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.355e-05/0.3361, allocations: 12.89 kB / 1.286 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.3363, allocations: 110.5 kB / 1.286 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.3363, allocations: 12.31 kB / 1.286 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.371e-05/0.3363, allocations: 4.375 kB / 1.286 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.3365, allocations: 65.97 kB / 1.286 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.3365, allocations: 0 / 1.286 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.3365, allocations: 11.98 kB / 1.286 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.3365, allocations: 0 / 1.286 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001704/0.3367, allocations: 43.95 kB / 1.286 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000644/0.3373, allocations: 303.7 kB / 1.286 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.3375, allocations: 46.56 kB / 1.287 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.3376, allocations: 36.95 kB / 1.287 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.3376, allocations: 0 / 1.287 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002382/0.3379, allocations: 79.41 kB / 1.287 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.3379, allocations: 0 / 1.287 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004168/0.3383, allocations: 125.6 kB / 1.287 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.3383, allocations: 63.34 kB / 1.287 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.3384, allocations: 125.7 kB / 1.287 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.3385, allocations: 25.7 kB / 1.287 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.161e-05/0.3385, allocations: 104 kB / 1.287 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.3386, allocations: 15.91 kB / 1.287 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.455e-05/0.3386, allocations: 29.7 kB / 1.287 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3388, allocations: 326.8 kB / 1.287 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.3389, allocations: 27.98 kB / 1.287 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.339, allocations: 77.92 kB / 1.287 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.3393, allocations: 105.9 kB / 1.288 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3393, allocations: 0 / 1.288 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003209/0.3396, allocations: 141.4 kB / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.3396, allocations: 8 kB / 1.288 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3396, allocations: 0 / 1.288 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.3396, allocations: 4 kB / 1.288 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.3398, allocations: 15.98 kB / 1.288 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.3398, allocations: 0 / 1.288 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.748e-05/0.3399, allocations: 16.14 kB / 1.288 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.3399, allocations: 8 kB / 1.288 GB, free: 7.027 MB / 0.9825 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.000126/0.34, allocations: 125.7 kB / 1.288 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.55e-05/0.34, allocations: 7.953 kB / 1.288 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.367e-05/0.3401, allocations: 8.375 kB / 1.288 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.3401, allocations: 4 kB / 1.288 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3401, allocations: 0 / 1.288 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3401, allocations: 3.984 kB / 1.288 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005175/0.3406, allocations: 345.5 kB / 1.288 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3406, allocations: 7.938 kB / 1.288 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.496e-05/0.3407, allocations: 7.984 kB / 1.288 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3407, allocations: 0 / 1.288 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.3407, allocations: 0 / 1.288 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.3407, allocations: 3.938 kB / 1.288 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3407, allocations: 4 kB / 1.288 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003114/0.341, allocations: 203.4 kB / 1.288 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.507e-05/0.341, allocations: 7.953 kB / 1.288 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.341, allocations: 4 kB / 1.288 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.931e-05/0.3411, allocations: 11.92 kB / 1.288 GB, free: 6.219 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.176e-05/0.3411, allocations: 3.984 kB / 1.289 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.3412, allocations: 4 kB / 1.289 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.561e-05/0.3412, allocations: 91.27 kB / 1.289 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3412, allocations: 4 kB / 1.289 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002564/0.3415, allocations: 19.94 kB / 1.289 GB, free: 6.098 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 (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.0006658/0.3421, allocations: 0.7423 MB / 1.289 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002773/0.3424, allocations: 79.81 kB / 1.289 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.3424, allocations: 3.938 kB / 1.289 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.3425, allocations: 27.98 kB / 1.289 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.3428, allocations: 21.81 kB / 1.289 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.3447, allocations: 1.513 MB / 1.291 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.345, allocations: 0.6885 MB / 1.292 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.899e-05/0.345, allocations: 16 kB / 1.292 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.233e-05/0.3451, allocations: 23.42 kB / 1.292 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of SimCode: time 4.61e-07/0.3451, allocations: 0 / 1.292 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03375/0.3788, allocations: 2.23 MB / 1.294 GB, free: 0.7227 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.27, allocations: 11.34 kB / 1.294 GB, free: 0.7148 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri.y from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri1.y from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.997475794998536]