Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",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.005354/0.005354, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001225/0.001225, allocations: 193.5 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.507/2.507, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 60.12 kB / 1.018 GB, free: 9.863 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9004/0.9018, allocations: 151.6 MB / 1.166 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002289/0.9042, allocations: 0.7464 MB / 1.167 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001693/0.9059, allocations: 1.08 MB / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.959e-05/0.906, allocations: 4 kB / 1.168 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.444e-05/0.9061, allocations: 3.938 kB / 1.168 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.371e-05/0.9062, allocations: 11.86 kB / 1.168 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.9065, allocations: 57.58 kB / 1.168 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001095/0.9066, allocations: 67.83 kB / 1.168 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.9067, allocations: 16.17 kB / 1.168 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.638e-05/0.9068, allocations: 31.86 kB / 1.168 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.326e-05/0.9069, allocations: 31.91 kB / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.9069, allocations: 4 kB / 1.168 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.216e-05/0.907, allocations: 23.98 kB / 1.168 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.885e-05/0.9071, allocations: 23.91 kB / 1.168 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.165e-05/0.9071, allocations: 27.86 kB / 1.168 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.9073, allocations: 83.34 kB / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.9073, allocations: 0 / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.503e-06/0.9073, allocations: 0 / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.848e-06/0.9073, allocations: 0 / 1.168 GB, free: 1.547 MB / 0.8887 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.0005848/0.9079, allocations: 387.1 kB / 1.169 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.9079, allocations: 12.92 kB / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.316e-05/0.908, allocations: 34.75 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.258e-05/0.908, allocations: 8.891 kB / 1.169 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001558/0.9082, allocations: 172.3 kB / 1.169 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.9082, allocations: 12.36 kB / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.9082, allocations: 4.375 kB / 1.169 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002275/0.9085, allocations: 73.84 kB / 1.169 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.9085, allocations: 8 kB / 1.169 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.9085, allocations: 0 / 1.169 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.9085, allocations: 0 / 1.169 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.9087, allocations: 43.95 kB / 1.169 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000662/0.9094, allocations: 320.7 kB / 1.169 GB, free: 352 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001721/0.9096, allocations: 54.55 kB / 1.169 GB, free: 288 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.9097, allocations: 32.97 kB / 1.169 GB, free: 252 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.9097, allocations: 3.984 kB / 1.169 GB, free: 248 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002633/0.91, allocations: 83.36 kB / 1.17 GB, free: 152 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.91, allocations: 4 kB / 1.17 GB, free: 148 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0004698/0.9105, allocations: 129.8 kB / 1.17 GB, free: 12 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.131e-05/0.9105, allocations: 51.41 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.9107, allocations: 129.7 kB / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.9107, allocations: 25.7 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.868e-05/0.9107, allocations: 96.08 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.9108, allocations: 15.89 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.841e-05/0.9109, allocations: 37.7 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.911, allocations: 322.8 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.9111, allocations: 31.91 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.9113, allocations: 77.92 kB / 1.17 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.9115, allocations: 113.9 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.9115, allocations: 0 / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003197/0.9118, allocations: 133.4 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.9119, allocations: 4 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.9119, allocations: 4 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.9119, allocations: 4.219 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.912, allocations: 19.98 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.9121, allocations: 0 / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.136e-05/0.9122, allocations: 19.94 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.9122, allocations: 4 kB / 1.171 GB, free: 14.85 MB / 0.9044 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.0001013/0.9123, allocations: 125.7 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.9123, allocations: 7.953 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.938e-05/0.9123, allocations: 12.36 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.9124, allocations: 4 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.9124, allocations: 4 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.9124, allocations: 0 / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004822/0.9129, allocations: 374.3 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.9129, allocations: 0 / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.558e-05/0.9129, allocations: 8 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.9129, allocations: 3.984 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.913, allocations: 0 / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.913, allocations: 7.938 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.913, allocations: 0 / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003161/0.9133, allocations: 195.5 kB / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.573e-05/0.9134, allocations: 89.05 kB / 1.171 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.9134, allocations: 3.938 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.245e-05/0.9135, allocations: 7.938 kB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/0.9135, allocations: 11.98 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.9135, allocations: 4 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.919e-05/0.9136, allocations: 99.2 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9136, allocations: 0 / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002538/0.9139, allocations: 12 kB / 1.172 GB, free: 13.8 MB / 0.9044 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.0006103/0.9145, allocations: 0.7436 MB / 1.172 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002875/0.9148, allocations: 83.8 kB / 1.172 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.9148, allocations: 0 / 1.172 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.9149, allocations: 32.41 kB / 1.172 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.9152, allocations: 17.06 kB / 1.172 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.917, allocations: 1.51 MB / 1.174 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.9173, allocations: 0.6923 MB / 1.175 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.675e-05/0.9173, allocations: 15.97 kB / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.138e-05/0.9174, allocations: 19.44 kB / 1.175 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of SimCode: time 5.51e-07/0.9174, allocations: 0 / 1.175 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.9357, allocations: 2.125 MB / 1.177 GB, free: 8.578 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.768/8.704, allocations: 7.875 kB / 1.177 GB, free: 8.574 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv --start-time -2 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches