Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.000992/0.0009921, 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.001161/0.001161, allocations: 196.6 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.436/1.436, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.332/2.332, allocations: 390.2 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 59.91 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6752/0.6767, allocations: 140.4 MB / 0.9498 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002036/0.6788, allocations: 0.7425 MB / 0.9505 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001119/0.6799, allocations: 1.075 MB / 0.9515 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.859e-05/0.68, allocations: 1.406 kB / 0.9515 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.815e-05/0.68, allocations: 3.938 kB / 0.9515 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.147e-05/0.6801, allocations: 13.12 kB / 0.9515 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.6804, allocations: 57.2 kB / 0.9516 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.499e-05/0.6805, allocations: 72.69 kB / 0.9517 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.6806, allocations: 12.81 kB / 0.9517 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.954e-05/0.6807, allocations: 30.38 kB / 0.9517 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.191e-05/0.6807, allocations: 33.75 kB / 0.9517 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.823e-05/0.6807, allocations: 5.344 kB / 0.9517 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.666e-05/0.6808, allocations: 20.83 kB / 0.9518 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.031e-05/0.6808, allocations: 26.59 kB / 0.9518 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.743e-05/0.6809, allocations: 31.8 kB / 0.9518 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.681, allocations: 76.56 kB / 0.9519 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.681, allocations: 1.438 kB / 0.9519 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.203e-06/0.681, allocations: 0 / 0.9519 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.681, allocations: 0 / 0.9519 GB, free: 7.52 MB / 0.7169 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.000466/0.6815, allocations: 376.8 kB / 0.9523 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.6816, allocations: 9.062 kB / 0.9523 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.852e-05/0.6816, allocations: 36.16 kB / 0.9523 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.6816, allocations: 11.59 kB / 0.9523 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.347e-05/0.6817, allocations: 176.6 kB / 0.9525 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.6817, allocations: 2.25 kB / 0.9525 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.6818, allocations: 8.594 kB / 0.9525 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.682, allocations: 73.45 kB / 0.9526 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.682, allocations: 0 / 0.9526 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.682, allocations: 5.078 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.682, allocations: 0.9688 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001643/0.6822, allocations: 43.91 kB / 0.9526 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005121/0.6827, allocations: 329.6 kB / 0.9529 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.6829, allocations: 51.64 kB / 0.953 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.517e-05/0.683, allocations: 40.88 kB / 0.953 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.683, allocations: 1.125 kB / 0.953 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.6832, allocations: 77.77 kB / 0.9531 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.225e-06/0.6832, allocations: 0.9062 kB / 0.9531 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003967/0.6836, allocations: 132.6 kB / 0.9532 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.6836, allocations: 57.06 kB / 0.9533 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.589e-05/0.6837, allocations: 124.9 kB / 0.9534 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.6837, allocations: 25.7 kB / 0.9534 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.296e-05/0.6838, allocations: 91.95 kB / 0.9535 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.6838, allocations: 22.44 kB / 0.9535 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.651e-05/0.6839, allocations: 26.28 kB / 0.9535 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.82e-05/0.6839, allocations: 325.7 kB / 0.9539 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.684, allocations: 31.03 kB / 0.9539 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.6842, allocations: 75.14 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.6844, allocations: 111.1 kB / 0.9541 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6844, allocations: 0 / 0.9541 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002988/0.6847, allocations: 129.6 kB / 0.9542 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.6847, allocations: 6.781 kB / 0.9542 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.6847, allocations: 2.25 kB / 0.9542 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.6848, allocations: 2.312 kB / 0.9542 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.6849, allocations: 19.33 kB / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.6849, allocations: 7.578 kB / 0.9542 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.183e-05/0.685, allocations: 16.72 kB / 0.9542 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.685, allocations: 4.562 kB / 0.9542 GB, free: 5.281 MB / 0.7169 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.918e-05/0.6851, allocations: 135.6 kB / 0.9544 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.513e-05/0.6851, allocations: 6.062 kB / 0.9544 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.681e-05/0.6851, allocations: 14.62 kB / 0.9544 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.6852, allocations: 1.062 kB / 0.9544 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6852, allocations: 0 / 0.9544 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.6852, allocations: 0 / 0.9544 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004198/0.6856, allocations: 373.8 kB / 0.9547 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.6856, allocations: 4 kB / 0.9548 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.307e-05/0.6857, allocations: 9.109 kB / 0.9548 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.6857, allocations: 0.9062 kB / 0.9548 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.6857, allocations: 5.25 kB / 0.9548 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.6857, allocations: 3.938 kB / 0.9548 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.6857, allocations: 0.9688 kB / 0.9548 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.686, allocations: 205 kB / 0.955 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.779e-05/0.686, allocations: 82.36 kB / 0.955 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.686, allocations: 1.531 kB / 0.955 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.307e-05/0.6861, allocations: 16.17 kB / 0.9551 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.368e-05/0.6862, allocations: 3.031 kB / 0.9551 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.832e-06/0.6862, allocations: 1.406 kB / 0.9551 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.248e-05/0.6862, allocations: 96.48 kB / 0.9552 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6862, allocations: 3.938 kB / 0.9552 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002534/0.6865, allocations: 20.94 kB / 0.9552 GB, free: 4.371 MB / 0.7169 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.0005069/0.687, allocations: 0.7373 MB / 0.9559 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002841/0.6873, allocations: 84.47 kB / 0.956 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6873, allocations: 1.375 kB / 0.956 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.6874, allocations: 35.75 kB / 0.956 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.6877, allocations: 15.78 kB / 0.956 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.689, allocations: 1.52 MB / 0.9575 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001063/0.6892, allocations: 0.689 MB / 0.9582 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.304e-05/0.6892, allocations: 8.375 kB / 0.9582 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.214e-05/0.6893, allocations: 22.77 kB / 0.9582 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.6893, allocations: 0 / 0.9582 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.7076, allocations: 2.075 MB / 0.9602 GB, free: 416 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.624/8.332, allocations: 19.09 kB / 0.9603 GB, free: 400 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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