Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008066/0.0008066, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.000819/0.000819, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9103/0.9103, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.765/1.765, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.597e-05/1.771e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001423/0.001441, allocations: 0.7235 MB / 1 GB, free: 12.76 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.00281, allocations: 1.101 MB / 1.001 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.814e-05/0.002858, allocations: 0 / 1.001 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.373e-05/0.002891, allocations: 11.88 kB / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.222e-05/0.002964, allocations: 7.875 kB / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.003287, allocations: 55.81 kB / 1.002 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.003396, allocations: 79.7 kB / 1.002 GB, free: 11.49 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.003517, allocations: 12.17 kB / 1.002 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.173e-05/0.003609, allocations: 39.91 kB / 1.002 GB, free: 11.44 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.975e-05/0.003658, allocations: 27.95 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.003676, allocations: 4 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.45e-05/0.00373, allocations: 19.88 kB / 1.002 GB, free: 11.39 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.216e-05/0.003752, allocations: 19.97 kB / 1.002 GB, free: 11.37 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.159e-05/0.003784, allocations: 19.92 kB / 1.002 GB, free: 11.35 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.003927, allocations: 87.72 kB / 1.002 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.00393, allocations: 4 kB / 1.002 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.523e-06/0.003932, allocations: 0 / 1.002 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.003937, allocations: 0 / 1.002 GB, free: 11.26 MB / 0.9636 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.0004153/0.004352, allocations: 298.1 kB / 1.002 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.004402, allocations: 8.75 kB / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.157e-05/0.004443, allocations: 42.73 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.3e-05/0.004476, allocations: 8.891 kB / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.349e-05/0.00456, allocations: 113.7 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.004571, allocations: 4.375 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.004582, allocations: 4.375 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001419/0.004724, allocations: 74.16 kB / 1.002 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.004731, allocations: 192 / 1.002 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.004739, allocations: 384 / 1.002 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.004746, allocations: 7.938 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.735e-05/0.004833, allocations: 43.95 kB / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004448/0.005278, allocations: 279.8 kB / 1.003 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001297/0.005408, allocations: 58.48 kB / 1.003 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.421e-05/0.005462, allocations: 28.97 kB / 1.003 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.005481, allocations: 0 / 1.003 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.005647, allocations: 79.41 kB / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.005648, allocations: 0 / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.0002755/0.005923, allocations: 137.6 kB / 1.003 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.005959, allocations: 55.41 kB / 1.003 GB, free: 9.887 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.771e-05/0.006037, allocations: 125.7 kB / 1.003 GB, free: 9.754 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.006051, allocations: 29.7 kB / 1.003 GB, free: 9.719 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.289e-05/0.006094, allocations: 88.09 kB / 1.003 GB, free: 9.629 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.00611, allocations: 23.83 kB / 1.003 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.34e-05/0.006153, allocations: 29.7 kB / 1.003 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.09e-05/0.006234, allocations: 318.8 kB / 1.004 GB, free: 9.25 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.34e-05/0.006307, allocations: 31.97 kB / 1.004 GB, free: 9.219 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.794e-05/0.006385, allocations: 77.92 kB / 1.004 GB, free: 9.121 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.006518, allocations: 109.8 kB / 1.004 GB, free: 8.992 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.006521, allocations: 0 / 1.004 GB, free: 8.992 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001777/0.006699, allocations: 137.4 kB / 1.004 GB, free: 8.852 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.006713, allocations: 8 kB / 1.004 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.006718, allocations: 0 / 1.004 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.006732, allocations: 4 kB / 1.004 GB, free: 8.84 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.993e-05/0.006812, allocations: 15.98 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.006818, allocations: 4.516 kB / 1.004 GB, free: 8.82 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.199e-05/0.00686, allocations: 15.94 kB / 1.004 GB, free: 8.805 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.006872, allocations: 8 kB / 1.004 GB, free: 8.797 MB / 0.9636 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 7.844e-05/0.00695, allocations: 127.3 kB / 1.004 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.053e-05/0.006961, allocations: 11.94 kB / 1.004 GB, free: 8.652 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.45e-05/0.006985, allocations: 8.438 kB / 1.004 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.006988, allocations: 4 kB / 1.004 GB, free: 8.641 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.006992, allocations: 0 / 1.004 GB, free: 8.641 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.006996, allocations: 0 / 1.004 GB, free: 8.641 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003235/0.00732, allocations: 353.4 kB / 1.004 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.007321, allocations: 0 / 1.004 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.724e-05/0.007358, allocations: 4 kB / 1.004 GB, free: 8.242 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.007361, allocations: 7.938 kB / 1.005 GB, free: 8.234 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.00737, allocations: 3.984 kB / 1.005 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.007372, allocations: 0 / 1.005 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.007373, allocations: 0 / 1.005 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001708/0.007544, allocations: 199.4 kB / 1.005 GB, free: 8.02 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.776e-06/0.007552, allocations: 11.94 kB / 1.005 GB, free: 8.008 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.007566, allocations: 3.984 kB / 1.005 GB, free: 8.004 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.077e-05/0.007606, allocations: 8 kB / 1.005 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.007642, allocations: 7.969 kB / 1.005 GB, free: 7.988 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.007649, allocations: 7.938 kB / 1.005 GB, free: 7.98 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.231e-05/0.007691, allocations: 95.86 kB / 1.005 GB, free: 7.887 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.007691, allocations: 0 / 1.005 GB, free: 7.887 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002141/0.007906, allocations: 27.89 kB / 1.005 GB, free: 7.859 MB / 0.9636 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.000467/0.008373, allocations: 0.7281 MB / 1.006 GB, free: 7.102 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001873/0.00856, allocations: 79.81 kB / 1.006 GB, free: 7.023 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.008562, allocations: 0 / 1.006 GB, free: 7.023 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.209e-05/0.008624, allocations: 35.97 kB / 1.006 GB, free: 6.988 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.008833, allocations: 20.8 kB / 1.006 GB, free: 6.973 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.0104, allocations: 1.522 MB / 1.007 GB, free: 5.324 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.56e-05/0.01046, allocations: 75.33 kB / 1.007 GB, free: 5.23 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 4.215e-05/0.01051, allocations: 8 kB / 1.007 GB, free: 5.223 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.356e-05/0.01056, allocations: 24.48 kB / 1.007 GB, free: 5.199 MB / 0.9636 GB Notification: Performance of SimCode: time 9.52e-07/0.01056, allocations: 0 / 1.007 GB, free: 5.199 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.0295, allocations: 2.825 MB / 1.01 GB, free: 2.531 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.716/6.746, allocations: 4.484 kB / 1.01 GB, free: 2.527 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri1.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.94810709822923]