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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 100.1 kB / 15.88 MB, free: 8 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.001819/0.001819, allocations: 198.5 kB / 16.79 MB, free: 6.828 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.419/1.419, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.378/2.378, allocations: 390.2 MB / 0.6649 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 67.91 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.674/0.6754, allocations: 140.4 MB / 0.9496 GB, free: 9.375 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002052/0.6775, allocations: 0.8145 MB / 0.9504 GB, free: 8.746 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001268/0.6788, allocations: 1.068 MB / 0.9515 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.043e-05/0.6788, allocations: 0 / 0.9515 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.467e-05/0.6789, allocations: 5.312 kB / 0.9515 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.763e-05/0.679, allocations: 13.03 kB / 0.9515 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002933/0.6793, allocations: 43.58 kB / 0.9515 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.521e-05/0.6794, allocations: 68.12 kB / 0.9516 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.6795, allocations: 15.64 kB / 0.9516 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.886e-05/0.6796, allocations: 27.08 kB / 0.9516 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.026e-05/0.6797, allocations: 33.47 kB / 0.9516 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.974e-05/0.6797, allocations: 4.406 kB / 0.9517 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.829e-05/0.6798, allocations: 20.5 kB / 0.9517 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.224e-05/0.6798, allocations: 18.55 kB / 0.9517 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.724e-05/0.6799, allocations: 29.2 kB / 0.9517 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.68, allocations: 52.05 kB / 0.9518 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.68, allocations: 0 / 0.9518 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.312e-06/0.68, allocations: 1.188 kB / 0.9518 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.68, allocations: 0 / 0.9518 GB, free: 7.664 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.0004845/0.6805, allocations: 380 kB / 0.9521 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.6805, allocations: 8.812 kB / 0.9521 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.73e-05/0.6806, allocations: 8.312 kB / 0.9521 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.198e-05/0.6807, allocations: 179.9 kB / 0.9523 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.6807, allocations: 3.719 kB / 0.9523 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.6807, allocations: 7.5 kB / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.6809, allocations: 70.34 kB / 0.9524 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.681, allocations: 3.938 kB / 0.9524 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.681, allocations: 3.938 kB / 0.9524 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.681, allocations: 1.188 kB / 0.9524 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.6812, allocations: 44.17 kB / 0.9524 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005786/0.6817, allocations: 329.5 kB / 0.9528 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001608/0.6819, allocations: 51.95 kB / 0.9528 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.644e-05/0.682, allocations: 36.12 kB / 0.9528 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.6821, allocations: 0 / 0.9528 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002157/0.6823, allocations: 83.08 kB / 0.9529 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.844e-06/0.6823, allocations: 0 / 0.9529 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004112/0.6827, allocations: 124.1 kB / 0.953 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.6827, allocations: 60.69 kB / 0.9531 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.807e-05/0.6828, allocations: 125.5 kB / 0.9532 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.6829, allocations: 26.77 kB / 0.9532 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.829e-05/0.6829, allocations: 90.27 kB / 0.9533 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.79e-05/0.6829, allocations: 19.36 kB / 0.9533 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.683, allocations: 30.58 kB / 0.9534 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.231e-05/0.683, allocations: 323.9 kB / 0.9537 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.6831, allocations: 32.28 kB / 0.9537 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.6833, allocations: 78.39 kB / 0.9538 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.6835, allocations: 104.5 kB / 0.9539 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.6835, allocations: 0 / 0.9539 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003055/0.6838, allocations: 141.4 kB / 0.954 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.6839, allocations: 6.188 kB / 0.954 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.6839, allocations: 1.625 kB / 0.954 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.6839, allocations: 1.688 kB / 0.954 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.684, allocations: 20.95 kB / 0.9541 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.684, allocations: 6.281 kB / 0.9541 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.024e-05/0.6841, allocations: 21.11 kB / 0.9541 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.6842, allocations: 4.75 kB / 0.9541 GB, free: 5.457 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.492e-05/0.6842, allocations: 130 kB / 0.9542 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.393e-05/0.6843, allocations: 5.656 kB / 0.9542 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.767e-05/0.6843, allocations: 13.98 kB / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.6843, allocations: 1.406 kB / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.6843, allocations: 0 / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.6843, allocations: 1.188 kB / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003928/0.6847, allocations: 373.5 kB / 0.9546 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.6847, allocations: 0 / 0.9546 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.395e-05/0.6848, allocations: 5.656 kB / 0.9546 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.6848, allocations: 0 / 0.9546 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.6848, allocations: 5.328 kB / 0.9546 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.6848, allocations: 3.938 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.6848, allocations: 1.25 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.6851, allocations: 200.9 kB / 0.9548 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.155e-05/0.6851, allocations: 86 kB / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.6851, allocations: 1.062 kB / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.499e-05/0.6852, allocations: 12.66 kB / 0.9549 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.6853, allocations: 14.41 kB / 0.9549 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.784e-06/0.6853, allocations: 1.25 kB / 0.9549 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.029e-05/0.6853, allocations: 97.67 kB / 0.955 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6853, allocations: 0 / 0.955 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002638/0.6856, allocations: 17.25 kB / 0.955 GB, free: 4.562 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.000137/0.6858, allocations: 104.8 kB / 0.9551 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002796/0.686, allocations: 73.42 kB / 0.9552 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.6861, allocations: 448 / 0.9552 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.6862, allocations: 45.5 kB / 0.9552 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.6865, allocations: 9.25 kB / 0.9552 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003633/0.6868, allocations: 210.8 kB / 0.9554 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001306/0.687, allocations: 0.6933 MB / 0.9561 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.687, allocations: 12.22 kB / 0.9561 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of SimCode: time 4.2e-07/0.687, allocations: 0 / 0.9561 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of Templates: time 0.00303/0.6901, allocations: 1.037 MB / 0.9571 GB, free: 2.973 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y