Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.SampleTrigger,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.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,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.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008506/0.0008546, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009409/0.000941, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 223.3 MB / 240 MB, free: 5.438 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.597/2.597, allocations: 390.9 MB / 0.666 GB, free: 2.535 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003858, allocations: 12 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8431/0.8435, allocations: 142.4 MB / 0.9545 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.0009836/0.8445, allocations: 464.5 kB / 0.9549 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.8457, allocations: 1.05 MB / 0.9559 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.749e-05/0.8458, allocations: 1.062 kB / 0.9559 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.879e-05/0.8458, allocations: 11.81 kB / 0.9559 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.549e-05/0.8459, allocations: 14.06 kB / 0.956 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.8462, allocations: 36.05 kB / 0.956 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001161/0.8463, allocations: 69.5 kB / 0.9561 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.8465, allocations: 14.5 kB / 0.9561 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.364e-05/0.8465, allocations: 22.27 kB / 0.9561 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.2e-05/0.8466, allocations: 28.61 kB / 0.9561 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.8467, allocations: 3.562 kB / 0.9561 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.52e-05/0.8467, allocations: 16.58 kB / 0.9561 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.134e-05/0.8468, allocations: 14.08 kB / 0.9562 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.706e-05/0.8468, allocations: 34.05 kB / 0.9562 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.8469, allocations: 61 kB / 0.9562 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.8469, allocations: 0 / 0.9562 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.104e-06/0.847, allocations: 1.219 kB / 0.9562 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.847, allocations: 0 / 0.9562 GB, free: 6.219 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.0005593/0.8475, allocations: 371.3 kB / 0.9566 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.8476, allocations: 8.969 kB / 0.9566 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.716e-05/0.8476, allocations: 11.89 kB / 0.9566 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.8478, allocations: 166.4 kB / 0.9568 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.8478, allocations: 9.906 kB / 0.9568 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.8478, allocations: 3.844 kB / 0.9568 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.848, allocations: 74.47 kB / 0.9569 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.8481, allocations: 0 / 0.9569 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.8481, allocations: 1.031 kB / 0.9569 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.8481, allocations: 1.062 kB / 0.9569 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.8483, allocations: 61.66 kB / 0.9569 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005925/0.8489, allocations: 331.5 kB / 0.9572 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.8491, allocations: 53.59 kB / 0.9573 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.8492, allocations: 46.61 kB / 0.9573 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.8492, allocations: 1.906 kB / 0.9573 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002172/0.8494, allocations: 87.03 kB / 0.9574 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.8494, allocations: 0 / 0.9574 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004344/0.8499, allocations: 150 kB / 0.9576 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.8499, allocations: 52.72 kB / 0.9576 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.614e-05/0.85, allocations: 125.5 kB / 0.9577 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.061e-05/0.85, allocations: 25.7 kB / 0.9578 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.845e-05/0.8501, allocations: 108.1 kB / 0.9579 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.8501, allocations: 10.19 kB / 0.9579 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.8501, allocations: 4 kB / 0.9579 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.421e-05/0.8502, allocations: 317.3 kB / 0.9582 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.8503, allocations: 36.25 kB / 0.9582 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.8504, allocations: 78.42 kB / 0.9583 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.8506, allocations: 44.58 kB / 0.9583 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.8506, allocations: 1.781 kB / 0.9583 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000287/0.8509, allocations: 142.7 kB / 0.9585 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.8509, allocations: 8.453 kB / 0.9585 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.8509, allocations: 5.766 kB / 0.9585 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.8509, allocations: 3.438 kB / 0.9585 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.8511, allocations: 21.8 kB / 0.9585 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.8511, allocations: 3.094 kB / 0.9585 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.011e-05/0.8512, allocations: 19.17 kB / 0.9585 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.8512, allocations: 4.875 kB / 0.9585 GB, free: 4.121 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.957e-05/0.8513, allocations: 119.7 kB / 0.9586 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.505e-05/0.8513, allocations: 6.812 kB / 0.9587 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.981e-05/0.8513, allocations: 13.75 kB / 0.9587 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.8514, allocations: 5.469 kB / 0.9587 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.8514, allocations: 0 / 0.9587 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.8514, allocations: 0 / 0.9587 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004205/0.8518, allocations: 386.8 kB / 0.959 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.8518, allocations: 3.953 kB / 0.959 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.194e-05/0.8519, allocations: 13.08 kB / 0.9591 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.8519, allocations: 0 / 0.9591 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.8519, allocations: 4 kB / 0.9591 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.8519, allocations: 1.656 kB / 0.9591 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.8519, allocations: 3.938 kB / 0.9591 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002552/0.8522, allocations: 214.3 kB / 0.9593 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.08e-05/0.8522, allocations: 90.31 kB / 0.9594 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.8522, allocations: 1.375 kB / 0.9594 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.948e-05/0.8523, allocations: 14.39 kB / 0.9594 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/0.8524, allocations: 6.609 kB / 0.9594 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.8524, allocations: 2.562 kB / 0.9594 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.5e-05/0.8524, allocations: 93.2 kB / 0.9595 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8524, allocations: 0 / 0.9595 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002575/0.8527, allocations: 20.38 kB / 0.9595 GB, free: 3.219 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001726/0.8529, allocations: 103.7 kB / 0.9596 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002815/0.8532, allocations: 93.81 kB / 0.9597 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.8532, allocations: 0 / 0.9597 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.8533, allocations: 32.73 kB / 0.9597 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.8536, allocations: 18.97 kB / 0.9597 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003645/0.8539, allocations: 174.7 kB / 0.9599 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001546/0.8541, allocations: 0.6891 MB / 0.9606 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.771e-05/0.8541, allocations: 9.281 kB / 0.9606 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.79e-05/0.8542, allocations: 11.56 kB / 0.9606 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of SimCode: time 9.52e-07/0.8542, allocations: 0 / 0.9606 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of Templates: time 0.003615/0.8578, allocations: 0.833 MB / 0.9614 GB, free: 1.773 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start