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.001038/0.001038, allocations: 92.16 kB / 16.02 MB, free: 80 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.001405/0.001405, allocations: 182.4 kB / 16.92 MB, free: 6.922 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.474/1.474, allocations: 223.3 MB / 241 MB, free: 5.238 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.528/2.528, allocations: 390.9 MB / 0.667 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003751/0.0003752, allocations: 12 kB / 0.8167 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.791/0.7914, allocations: 142.4 MB / 0.9557 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.0009164/0.7924, allocations: 491.8 kB / 0.9562 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.7936, allocations: 1.053 MB / 0.9572 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.458e-05/0.7936, allocations: 5.125 kB / 0.9572 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.067e-05/0.7936, allocations: 0 / 0.9572 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.131e-05/0.7937, allocations: 9.203 kB / 0.9572 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.794, allocations: 51.39 kB / 0.9573 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.642e-05/0.7941, allocations: 64.56 kB / 0.9574 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.7942, allocations: 18.98 kB / 0.9574 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.783e-05/0.7943, allocations: 26.05 kB / 0.9574 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.398e-05/0.7943, allocations: 33.41 kB / 0.9574 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.619e-05/0.7943, allocations: 3 kB / 0.9574 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.249e-05/0.7944, allocations: 12.27 kB / 0.9574 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.7944, allocations: 14.33 kB / 0.9575 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.256e-05/0.7945, allocations: 53.81 kB / 0.9575 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.181e-05/0.7946, allocations: 53.31 kB / 0.9576 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.7946, allocations: 0 / 0.9576 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.743e-06/0.7946, allocations: 4 kB / 0.9576 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.7946, allocations: 0 / 0.9576 GB, free: 6.336 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.0004535/0.7951, allocations: 366.8 kB / 0.9579 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.7951, allocations: 9.25 kB / 0.9579 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.534e-05/0.7952, allocations: 8.438 kB / 0.9579 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.597e-05/0.7952, allocations: 176 kB / 0.9581 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.7953, allocations: 10.53 kB / 0.9581 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.7953, allocations: 13.27 kB / 0.9581 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.7955, allocations: 69.86 kB / 0.9582 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.7955, allocations: 3.938 kB / 0.9582 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.7955, allocations: 9.094 kB / 0.9582 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.7955, allocations: 1.094 kB / 0.9582 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.7957, allocations: 53.95 kB / 0.9582 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005672/0.7963, allocations: 344.5 kB / 0.9586 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.7965, allocations: 61.2 kB / 0.9586 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.7966, allocations: 32.25 kB / 0.9587 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.7966, allocations: 0 / 0.9587 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001908/0.7968, allocations: 96.5 kB / 0.9588 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.7968, allocations: 0 / 0.9588 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000413/0.7972, allocations: 142.4 kB / 0.9589 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.7973, allocations: 56.55 kB / 0.9589 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.36e-05/0.7973, allocations: 124.6 kB / 0.9591 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.7974, allocations: 30.83 kB / 0.9591 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.356e-05/0.7974, allocations: 87.48 kB / 0.9592 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.7974, allocations: 18.94 kB / 0.9592 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-05/0.7975, allocations: 20.61 kB / 0.9592 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.436e-05/0.7975, allocations: 321.3 kB / 0.9595 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.7976, allocations: 33.64 kB / 0.9596 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.7978, allocations: 83.42 kB / 0.9596 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.798, allocations: 115.9 kB / 0.9597 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.798, allocations: 1.531 kB / 0.9597 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002973/0.7983, allocations: 142.2 kB / 0.9599 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.7983, allocations: 5.5 kB / 0.9599 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.7983, allocations: 6.734 kB / 0.9599 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.7983, allocations: 1.594 kB / 0.9599 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.7985, allocations: 27.11 kB / 0.9599 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.7985, allocations: 2.75 kB / 0.9599 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.417e-05/0.7986, allocations: 20.11 kB / 0.9599 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.7986, allocations: 4.125 kB / 0.9599 GB, free: 4.137 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 6.802e-05/0.7987, allocations: 127.2 kB / 0.9601 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.7987, allocations: 6.656 kB / 0.9601 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.552e-05/0.7987, allocations: 9.75 kB / 0.9601 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.7987, allocations: 5.312 kB / 0.9601 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.7987, allocations: 0 / 0.9601 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.7987, allocations: 3.984 kB / 0.9601 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003955/0.7991, allocations: 391.1 kB / 0.9605 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.7992, allocations: 0 / 0.9605 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.489e-05/0.7992, allocations: 12.23 kB / 0.9605 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.7992, allocations: 1.375 kB / 0.9605 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.7992, allocations: 0 / 0.9605 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.7992, allocations: 5.312 kB / 0.9605 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.7992, allocations: 0 / 0.9605 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002568/0.7995, allocations: 206.9 kB / 0.9607 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.157e-05/0.7995, allocations: 83.77 kB / 0.9608 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.7996, allocations: 0 / 0.9608 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.683e-05/0.7997, allocations: 14.8 kB / 0.9608 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.7997, allocations: 18.67 kB / 0.9608 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.7997, allocations: 1.375 kB / 0.9608 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.451e-05/0.7997, allocations: 92.89 kB / 0.9609 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7998, allocations: 0 / 0.9609 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002575/0.8, allocations: 13.69 kB / 0.9609 GB, free: 3.242 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.0001303/0.8002, allocations: 107 kB / 0.961 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002771/0.8004, allocations: 94.17 kB / 0.9611 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.8004, allocations: 0 / 0.9611 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.8006, allocations: 42.42 kB / 0.9611 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.8008, allocations: 22.16 kB / 0.9612 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003131/0.8012, allocations: 209.3 kB / 0.9614 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.8013, allocations: 0.6891 MB / 0.962 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.92e-05/0.8013, allocations: 14.72 kB / 0.962 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of SimCode: time 2.7e-07/0.8013, allocations: 0 / 0.962 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of Templates: time 0.002588/0.8039, allocations: 1.016 MB / 0.963 GB, free: 1.668 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