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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001593/0.001593, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001995/0.001995, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.458/1.458, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.195/2.195, allocations: 390.3 MB / 0.6653 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 71.95 kB / 0.8132 GB, free: 33.12 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2608, allocations: 140.4 MB / 0.9503 GB, free: 8.828 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002022/0.2629, allocations: 0.7423 MB / 0.951 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001361/0.2643, allocations: 1.079 MB / 0.9521 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.774e-05/0.2643, allocations: 0 / 0.9521 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.313e-05/0.2644, allocations: 3.938 kB / 0.9521 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.959e-05/0.2645, allocations: 7.875 kB / 0.9521 GB, free: 6.969 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.2649, allocations: 59.81 kB / 0.9522 GB, free: 6.91 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001034/0.265, allocations: 67.78 kB / 0.9522 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.2651, allocations: 24.16 kB / 0.9522 GB, free: 6.816 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.368e-05/0.2652, allocations: 35.91 kB / 0.9523 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.224e-05/0.2653, allocations: 31.84 kB / 0.9523 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.999e-05/0.2653, allocations: 4 kB / 0.9523 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.317e-05/0.2654, allocations: 15.98 kB / 0.9523 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.222e-05/0.2654, allocations: 15.94 kB / 0.9523 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.987e-05/0.2654, allocations: 35.84 kB / 0.9524 GB, free: 6.68 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.2656, allocations: 79.69 kB / 0.9524 GB, free: 6.602 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2656, allocations: 0 / 0.9524 GB, free: 6.602 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2656, allocations: 0 / 0.9524 GB, free: 6.602 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.2656, allocations: 0 / 0.9524 GB, free: 6.602 MB / 0.7325 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.0005646/0.2662, allocations: 387.4 kB / 0.9528 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.2662, allocations: 12.03 kB / 0.9528 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.671e-05/0.2663, allocations: 4.938 kB / 0.9528 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.2664, allocations: 172.2 kB / 0.953 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.2665, allocations: 4.359 kB / 0.953 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.2665, allocations: 8.375 kB / 0.953 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002032/0.2667, allocations: 66.17 kB / 0.9531 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2667, allocations: 3.938 kB / 0.9531 GB, free: 5.867 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.2667, allocations: 4 kB / 0.9531 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.2667, allocations: 4 kB / 0.9531 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.2669, allocations: 43.95 kB / 0.9531 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006232/0.2675, allocations: 324.6 kB / 0.9534 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001663/0.2677, allocations: 54.55 kB / 0.9535 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.2678, allocations: 36.91 kB / 0.9535 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.2679, allocations: 0 / 0.9535 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.2681, allocations: 79.36 kB / 0.9536 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.2681, allocations: 4 kB / 0.9536 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004323/0.2685, allocations: 129.5 kB / 0.9537 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.2686, allocations: 63.34 kB / 0.9538 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.392e-05/0.2687, allocations: 121.8 kB / 0.9539 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.2687, allocations: 25.7 kB / 0.9539 GB, free: 4.887 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.103e-05/0.2688, allocations: 92.05 kB / 0.954 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.2688, allocations: 15.75 kB / 0.954 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.981e-05/0.2689, allocations: 37.7 kB / 0.9541 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.269, allocations: 322.8 kB / 0.9544 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.2691, allocations: 27.97 kB / 0.9544 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001283/0.2692, allocations: 73.97 kB / 0.9545 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002336/0.2695, allocations: 113.8 kB / 0.9546 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2695, allocations: 4 kB / 0.9546 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003176/0.2698, allocations: 125.5 kB / 0.9547 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2698, allocations: 4 kB / 0.9547 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2698, allocations: 4 kB / 0.9547 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.2699, allocations: 4.219 kB / 0.9547 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.27, allocations: 19.92 kB / 0.9547 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.27, allocations: 4 kB / 0.9547 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.528e-05/0.2701, allocations: 15.89 kB / 0.9548 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.2701, allocations: 4 kB / 0.9548 GB, free: 3.969 MB / 0.7325 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.398e-05/0.2702, allocations: 125.8 kB / 0.9549 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.2702, allocations: 11.83 kB / 0.9549 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.877e-05/0.2703, allocations: 12.31 kB / 0.9549 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2703, allocations: 4 kB / 0.9549 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.2703, allocations: 3.984 kB / 0.9549 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.2703, allocations: 0 / 0.9549 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004559/0.2708, allocations: 370.5 kB / 0.9553 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2708, allocations: 0 / 0.9553 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.587e-05/0.2708, allocations: 11.92 kB / 0.9553 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.2708, allocations: 4 kB / 0.9553 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.2709, allocations: 4 kB / 0.9553 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.2709, allocations: 3.938 kB / 0.9553 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2709, allocations: 0 / 0.9553 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002802/0.2712, allocations: 195.4 kB / 0.9555 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.412e-05/0.2712, allocations: 92.94 kB / 0.9556 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.2712, allocations: 0 / 0.9556 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.4e-05/0.2713, allocations: 15.94 kB / 0.9556 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.788e-05/0.2714, allocations: 7.984 kB / 0.9556 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.2714, allocations: 0 / 0.9556 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.196e-05/0.2714, allocations: 95.92 kB / 0.9557 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.81e-07/0.2714, allocations: 0 / 0.9557 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002576/0.2717, allocations: 16 kB / 0.9557 GB, free: 2.914 MB / 0.7325 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.0001593/0.2719, allocations: 111.5 kB / 0.9558 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002971/0.2722, allocations: 79.83 kB / 0.9559 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2722, allocations: 4 kB / 0.9559 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.2723, allocations: 35.97 kB / 0.9559 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.2726, allocations: 18.38 kB / 0.9559 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004196/0.273, allocations: 184.4 kB / 0.9561 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.2733, allocations: 0.6883 MB / 0.9568 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.844e-05/0.2733, allocations: 23.42 kB / 0.9568 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of SimCode: time 4e-07/0.2733, allocations: 0 / 0.9568 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of Templates: time 0.002716/0.2761, allocations: 1.04 MB / 0.9578 GB, free: 0.6719 MB / 0.7325 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/jenkins1/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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y