Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001328/0.001328, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001375/0.001375, allocations: 198.8 kB / 16.91 MB, free: 6.195 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.439/1.439, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.814/2.814, allocations: 482.4 MB / 0.755 GB, free: 7.145 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001845, allocations: 64.22 kB / 0.924 GB, free: 324 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.705/0.7068, allocations: 162.2 MB / 1.082 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001948/0.7088, allocations: 0.809 MB / 1.083 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.71, allocations: 1.069 MB / 1.084 GB, free: 340 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.843e-05/0.7101, allocations: 1.312 kB / 1.084 GB, free: 340 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.564e-05/0.7101, allocations: 8.594 kB / 1.084 GB, free: 332 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.065e-05/0.7102, allocations: 6.109 kB / 1.084 GB, free: 328 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003098/0.7105, allocations: 44.94 kB / 1.084 GB, free: 304 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.893e-05/0.7106, allocations: 72.12 kB / 1.084 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.7107, allocations: 19.22 kB / 1.084 GB, free: 256 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.118e-05/0.7108, allocations: 30.55 kB / 1.084 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.982e-05/0.7109, allocations: 29.95 kB / 1.084 GB, free: 228 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.704e-05/0.7109, allocations: 4.938 kB / 1.084 GB, free: 228 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.387e-05/0.711, allocations: 31.97 kB / 1.085 GB, free: 212 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.196e-05/0.711, allocations: 17.95 kB / 1.085 GB, free: 200 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.583e-05/0.7111, allocations: 26.83 kB / 1.085 GB, free: 184 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.7112, allocations: 55.11 kB / 1.085 GB, free: 168 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.7112, allocations: 4 kB / 1.085 GB, free: 164 kB / 0.8262 GB Notification: Performance of FrontEnd: time 2.234e-06/0.7112, allocations: 4.594 kB / 1.085 GB, free: 160 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.7112, allocations: 0.6875 kB / 1.085 GB, free: 160 kB / 0.8262 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.0005846/0.7118, allocations: 372.8 kB / 1.085 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.7119, allocations: 9.844 kB / 1.085 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.443e-05/0.7119, allocations: 13.06 kB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.7121, allocations: 173.8 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.7121, allocations: 2.328 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.7121, allocations: 8.406 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002089/0.7123, allocations: 68.72 kB / 1.085 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.7124, allocations: 5.281 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.7124, allocations: 0 / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.7124, allocations: 2.125 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.7126, allocations: 50.72 kB / 1.085 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006679/0.7133, allocations: 328.2 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/0.7134, allocations: 58.94 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.7136, allocations: 37.48 kB / 1.086 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.7136, allocations: 2.031 kB / 1.086 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002383/0.7138, allocations: 81.55 kB / 1.086 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.7138, allocations: 0 / 1.086 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004264/0.7143, allocations: 131.6 kB / 1.086 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.7143, allocations: 53.28 kB / 1.086 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.7144, allocations: 127.2 kB / 1.086 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.7145, allocations: 26.73 kB / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.045e-05/0.7145, allocations: 92.36 kB / 1.086 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.7146, allocations: 16.02 kB / 1.086 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.644e-05/0.7146, allocations: 30.8 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.7148, allocations: 326.9 kB / 1.087 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.7149, allocations: 31.22 kB / 1.087 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.715, allocations: 70.47 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.7153, allocations: 110.5 kB / 1.087 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.7153, allocations: 1.562 kB / 1.087 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00033/0.7156, allocations: 134.3 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.7157, allocations: 5.281 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.7157, allocations: 2.625 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.7157, allocations: 1.281 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.7158, allocations: 21.53 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.7159, allocations: 7.516 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.835e-05/0.716, allocations: 13.42 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.716, allocations: 8.125 kB / 1.087 GB, free: 14.14 MB / 0.8419 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 0.0001086/0.7161, allocations: 125.2 kB / 1.087 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.7161, allocations: 6.312 kB / 1.087 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/0.7161, allocations: 11.47 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.7162, allocations: 1.25 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.7162, allocations: 0 / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.7162, allocations: 0.5625 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005186/0.7167, allocations: 372.1 kB / 1.087 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.7167, allocations: 5.062 kB / 1.087 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.429e-05/0.7168, allocations: 7.531 kB / 1.087 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.7168, allocations: 1.281 kB / 1.087 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-06/0.7168, allocations: 2.859 kB / 1.087 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.7168, allocations: 3.938 kB / 1.087 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.7168, allocations: 4 kB / 1.087 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003102/0.7171, allocations: 195.6 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.62e-05/0.7172, allocations: 83.2 kB / 1.088 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.7172, allocations: 9.547 kB / 1.088 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.658e-05/0.7173, allocations: 10.39 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.112e-05/0.7174, allocations: 5.672 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.7174, allocations: 10.38 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.783e-05/0.7175, allocations: 96.14 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.285e-06/0.7175, allocations: 0 / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002747/0.7178, allocations: 25.5 kB / 1.088 GB, free: 13.29 MB / 0.8419 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.0001832/0.7179, allocations: 102.2 kB / 1.088 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003085/0.7183, allocations: 83.47 kB / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.7183, allocations: 0 / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.7184, allocations: 35.75 kB / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.7187, allocations: 12.73 kB / 1.088 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004523/0.7192, allocations: 218.4 kB / 1.088 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.7196, allocations: 0.6875 MB / 1.089 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.914e-05/0.7196, allocations: 12.58 kB / 1.089 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of SimCode: time 3.31e-07/0.7196, allocations: 1.312 kB / 1.089 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of Templates: time 0.003163/0.7228, allocations: 1.038 MB / 1.09 GB, free: 12.19 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y