Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001398/0.001398, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.278/1.278, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.526/2.526, allocations: 469.8 MB / 0.7424 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 71.89 kB / 0.9087 GB, free: 34.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.239, allocations: 159.2 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001839/0.2408, allocations: 0.7502 MB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001334/0.2422, allocations: 1.086 MB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.536e-05/0.2422, allocations: 4 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.812e-05/0.2423, allocations: 3.938 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.213e-05/0.2424, allocations: 15.86 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.2426, allocations: 47.83 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000107/0.2427, allocations: 71.83 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.695e-05/0.2428, allocations: 16.12 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.711e-05/0.2429, allocations: 31.86 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.043e-05/0.243, allocations: 31.89 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.243, allocations: 15.94 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.193e-05/0.2431, allocations: 19.98 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.105e-05/0.2431, allocations: 15.98 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.275e-05/0.2431, allocations: 31.8 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001303/0.2433, allocations: 71.81 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2433, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2433, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.2433, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 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.0005153/0.2438, allocations: 383.5 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.2439, allocations: 8.031 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.665e-05/0.2439, allocations: 42.69 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.391e-05/0.2439, allocations: 8.844 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.2441, allocations: 176.2 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.2441, allocations: 8.312 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.398e-05/0.2441, allocations: 8.375 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.2443, allocations: 65.98 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.2443, allocations: 0 / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.2444, allocations: 0 / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-06/0.2444, allocations: 4 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001692/0.2445, allocations: 47.95 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005739/0.2451, allocations: 324.7 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.2453, allocations: 54.55 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.696e-05/0.2454, allocations: 32.97 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.2454, allocations: 0 / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001931/0.2456, allocations: 79.41 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.2456, allocations: 0 / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003922/0.246, allocations: 133.7 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.2461, allocations: 59.41 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.698e-05/0.2462, allocations: 125.7 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.2462, allocations: 25.7 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.174e-05/0.2463, allocations: 84.14 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.2463, allocations: 23.73 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.2463, allocations: 29.72 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.2465, allocations: 326.8 kB / 1.068 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.2466, allocations: 27.97 kB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.2467, allocations: 77.86 kB / 1.068 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.2469, allocations: 109.9 kB / 1.068 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.247, allocations: 4 kB / 1.068 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002881/0.2473, allocations: 133.4 kB / 1.069 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.2473, allocations: 4 kB / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.2473, allocations: 0 / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.2473, allocations: 4.219 kB / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.2474, allocations: 19.98 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.2474, allocations: 8.062 kB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.544e-05/0.2475, allocations: 7.984 kB / 1.069 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.2475, allocations: 4 kB / 1.069 GB, free: 9.301 MB / 0.8262 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 9.432e-05/0.2476, allocations: 129.7 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.499e-05/0.2476, allocations: 7.891 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.445e-05/0.2477, allocations: 12.38 kB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2477, allocations: 0 / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2477, allocations: 4 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.2477, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004385/0.2481, allocations: 382.2 kB / 1.069 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2481, allocations: 0 / 1.069 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.103e-05/0.2482, allocations: 11.98 kB / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.2482, allocations: 0 / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.2482, allocations: 4 kB / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.2482, allocations: 7.938 kB / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2482, allocations: 0 / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/0.2485, allocations: 191.5 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.2486, allocations: 89 kB / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.2486, allocations: 0 / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.744e-05/0.2487, allocations: 11.94 kB / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.095e-05/0.2487, allocations: 15.97 kB / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.2487, allocations: 0 / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.415e-05/0.2488, allocations: 91.27 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2488, allocations: 7.938 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002266/0.249, allocations: 16 kB / 1.07 GB, free: 8.238 MB / 0.8262 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.0005856/0.2496, allocations: 0.7441 MB / 1.07 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002552/0.2499, allocations: 83.81 kB / 1.07 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2499, allocations: 0 / 1.07 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.25, allocations: 36.41 kB / 1.07 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.2502, allocations: 19.36 kB / 1.07 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.2518, allocations: 1.51 MB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.2521, allocations: 0.6924 MB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.845e-05/0.2521, allocations: 7.938 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.313e-05/0.2522, allocations: 23.42 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of SimCode: time 1.91e-07/0.2522, allocations: 0 / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9904/1.243, allocations: 2.081 MB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/12.15, allocations: 12.62 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,samTri.period,samTri.shift,samTri.y,samTri1.period,samTri1.shift,samTri1.y,time,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.trigger,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start