Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_10_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_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01089/0.01089, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002557/0.002557, allocations: 198.5 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.89/2.89, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 5.286/5.286, allocations: 437.1 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003109/0.003109, allocations: 75.88 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5669/0.5701, allocations: 151.6 MB / 1.166 GB, free: 7.297 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.003355/0.5735, allocations: 0.7512 MB / 1.167 GB, free: 6.543 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002425/0.576, allocations: 1.074 MB / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.665e-05/0.5761, allocations: 4 kB / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.409e-05/0.5762, allocations: 3.938 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.5763, allocations: 7.875 kB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005011/0.5768, allocations: 55.81 kB / 1.168 GB, free: 5.383 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002081/0.5771, allocations: 71.78 kB / 1.168 GB, free: 5.312 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.5772, allocations: 28.14 kB / 1.168 GB, free: 5.281 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.5774, allocations: 27.92 kB / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.5775, allocations: 39.84 kB / 1.168 GB, free: 5.215 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.6e-05/0.5775, allocations: 4 kB / 1.168 GB, free: 5.211 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.5776, allocations: 15.98 kB / 1.168 GB, free: 5.195 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.045e-05/0.5777, allocations: 23.91 kB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.524e-05/0.5778, allocations: 23.88 kB / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002503/0.578, allocations: 83.89 kB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.5781, allocations: 0 / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of FrontEnd: time 5.992e-06/0.5781, allocations: 4 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.303e-06/0.5781, allocations: 0 / 1.168 GB, free: 5.062 MB / 0.92 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.0008703/0.579, allocations: 383.2 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 7.202e-05/0.5791, allocations: 12.03 kB / 1.169 GB, free: 4.629 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.431e-05/0.5791, allocations: 34.73 kB / 1.169 GB, free: 4.586 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.2e-05/0.5792, allocations: 8.891 kB / 1.169 GB, free: 4.578 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.5794, allocations: 172.3 kB / 1.169 GB, free: 4.371 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.5795, allocations: 4.375 kB / 1.169 GB, free: 4.367 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.365e-05/0.5795, allocations: 4.375 kB / 1.169 GB, free: 4.363 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.5798, allocations: 73.91 kB / 1.169 GB, free: 4.285 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.5799, allocations: 4 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.5799, allocations: 0 / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.5799, allocations: 4 kB / 1.169 GB, free: 4.277 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002951/0.5802, allocations: 51.83 kB / 1.169 GB, free: 4.227 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.5814, allocations: 328.6 kB / 1.169 GB, free: 3.855 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002733/0.5817, allocations: 54.56 kB / 1.169 GB, free: 3.793 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.5819, allocations: 32.95 kB / 1.169 GB, free: 3.758 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.5819, allocations: 0 / 1.169 GB, free: 3.758 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004265/0.5823, allocations: 87.36 kB / 1.17 GB, free: 3.66 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 2.174e-06/0.5824, allocations: 4 kB / 1.17 GB, free: 3.656 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0007044/0.5831, allocations: 125.6 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/0.5832, allocations: 51.41 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.5834, allocations: 125.7 kB / 1.17 GB, free: 3.332 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.483e-05/0.5834, allocations: 29.7 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.5835, allocations: 96.11 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.5836, allocations: 7.906 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.5837, allocations: 37.7 kB / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002377/0.5839, allocations: 322.8 kB / 1.17 GB, free: 2.824 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.5841, allocations: 23.98 kB / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.5844, allocations: 73.92 kB / 1.17 GB, free: 2.707 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004027/0.5848, allocations: 117.9 kB / 1.171 GB, free: 2.57 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5848, allocations: 0 / 1.171 GB, free: 2.57 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.003222/0.588, allocations: 133.4 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.5881, allocations: 4 kB / 1.171 GB, free: 2.43 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.5881, allocations: 4 kB / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.5882, allocations: 4.219 kB / 1.171 GB, free: 2.422 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.5884, allocations: 15.98 kB / 1.171 GB, free: 2.406 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/0.5884, allocations: 4 kB / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001748/0.5886, allocations: 19.88 kB / 1.171 GB, free: 2.383 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.5886, allocations: 7.938 kB / 1.171 GB, free: 2.375 MB / 0.92 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.000177/0.5888, allocations: 125.7 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.23e-05/0.5889, allocations: 7.953 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.767e-05/0.589, allocations: 8.375 kB / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.589, allocations: 4 kB / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.589, allocations: 0 / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.589, allocations: 3.984 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008847/0.5899, allocations: 370.4 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.5899, allocations: 0 / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.692e-05/0.59, allocations: 7.984 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.59, allocations: 4 kB / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.5901, allocations: 0 / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.5901, allocations: 7.938 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.5901, allocations: 0 / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005114/0.5906, allocations: 203.4 kB / 1.171 GB, free: 1.566 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 8.192e-05/0.5907, allocations: 92.94 kB / 1.172 GB, free: 1.457 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.5908, allocations: 0 / 1.172 GB, free: 1.457 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.5909, allocations: 11.92 kB / 1.172 GB, free: 1.445 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.262e-05/0.591, allocations: 11.98 kB / 1.172 GB, free: 1.434 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.591, allocations: 0 / 1.172 GB, free: 1.434 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001088/0.5911, allocations: 99.27 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.91e-07/0.5912, allocations: 0 / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005147/0.5917, allocations: 15.94 kB / 1.172 GB, free: 1.32 MB / 0.92 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.00106/0.5928, allocations: 0.7441 MB / 1.172 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004882/0.5933, allocations: 79.81 kB / 1.172 GB, free: 484 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5933, allocations: 0 / 1.172 GB, free: 484 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001771/0.5935, allocations: 28.42 kB / 1.172 GB, free: 456 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004987/0.594, allocations: 27.92 kB / 1.172 GB, free: 428 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003132/0.5971, allocations: 1.51 MB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004571/0.5977, allocations: 0.6924 MB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.953e-05/0.5978, allocations: 8 kB / 1.175 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.531e-05/0.5979, allocations: 23.42 kB / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of SimCode: time 1.262e-06/0.5979, allocations: 0 / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09962/0.6975, allocations: 2.094 MB / 1.177 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.14/17.84, allocations: 0 / 1.177 GB, free: 12.09 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches