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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001605/0.001605, 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.001931/0.001931, allocations: 198.3 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.409/1.409, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.575/2.575, allocations: 437 MB / 0.7106 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 63.91 kB / 0.8692 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6457/0.6472, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002127/0.6494, allocations: 0.8263 MB / 1.018 GB, free: 1.973 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.6507, allocations: 1.066 MB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.881e-05/0.6507, allocations: 0 / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.901e-05/0.6508, allocations: 3.938 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.739e-05/0.6509, allocations: 11.92 kB / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.6511, allocations: 39.91 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.117e-05/0.6512, allocations: 67.83 kB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.6513, allocations: 20.17 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.08e-05/0.6514, allocations: 27.86 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.603e-05/0.6515, allocations: 31.89 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.6515, allocations: 4 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.845e-05/0.6516, allocations: 19.98 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.301e-05/0.6516, allocations: 11.92 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.694e-05/0.6517, allocations: 27.86 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.6518, allocations: 55.89 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.6518, allocations: 3.938 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of FrontEnd: time 9.02e-07/0.6518, allocations: 0 / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.817e-06/0.6518, allocations: 4 kB / 1.019 GB, free: 0.5625 MB / 0.7637 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.000573/0.6524, allocations: 385.1 kB / 1.02 GB, free: 144 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.6524, allocations: 12.03 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.848e-05/0.6525, allocations: 4.938 kB / 1.02 GB, free: 128 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.6526, allocations: 176.2 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.6527, allocations: 384 / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.6527, allocations: 4.375 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.6529, allocations: 82.16 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.6529, allocations: 3.938 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.6529, allocations: 0 / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.6529, allocations: 4 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.6531, allocations: 43.95 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006338/0.6538, allocations: 324.6 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.6539, allocations: 54.59 kB / 1.021 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.804e-05/0.654, allocations: 32.95 kB / 1.021 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.6541, allocations: 3.984 kB / 1.021 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.6543, allocations: 83.36 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.512e-06/0.6543, allocations: 3.938 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004189/0.6547, allocations: 129.5 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.6548, allocations: 55.41 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.088e-05/0.6549, allocations: 125.8 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.6549, allocations: 29.69 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.722e-05/0.655, allocations: 96.05 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.655, allocations: 15.8 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.986e-05/0.6551, allocations: 33.7 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.6552, allocations: 318.8 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.6553, allocations: 27.98 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.6554, allocations: 81.91 kB / 1.022 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002204/0.6557, allocations: 109.9 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.6557, allocations: 0 / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002998/0.656, allocations: 129.4 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.656, allocations: 4.219 kB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.656, allocations: 8 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.656, allocations: 0 / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.6562, allocations: 23.92 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.6562, allocations: 4 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.458e-05/0.6563, allocations: 11.92 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.6563, allocations: 4 kB / 1.022 GB, free: 13.92 MB / 0.7794 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.68e-05/0.6564, allocations: 126.3 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.353e-05/0.6564, allocations: 3.906 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.066e-05/0.6565, allocations: 16.36 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.6565, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.6565, allocations: 3.938 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.6565, allocations: 0 / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000459/0.657, allocations: 374.5 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.657, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.596e-05/0.657, allocations: 8 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.657, allocations: 7.938 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-06/0.6571, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.6571, allocations: 7.922 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.6571, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.6574, allocations: 191.4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.6574, allocations: 85.02 kB / 1.023 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.6574, allocations: 11.98 kB / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.222e-05/0.6575, allocations: 7.938 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.402e-05/0.6576, allocations: 15.97 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.6576, allocations: 0 / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.021e-05/0.6577, allocations: 99.2 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6577, allocations: 0 / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002513/0.6579, allocations: 15.94 kB / 1.023 GB, free: 12.86 MB / 0.7794 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.0001834/0.6581, allocations: 119.2 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002749/0.6584, allocations: 75.88 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.6584, allocations: 0 / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.6585, allocations: 31.97 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.6588, allocations: 12.44 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003842/0.6592, allocations: 203.2 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.6595, allocations: 0.6926 MB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.234e-05/0.6595, allocations: 11.44 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6595, allocations: 0 / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of Templates: time 0.0027/0.6622, allocations: 1.039 MB / 1.025 GB, free: 10.64 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/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) "" 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