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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 84.73 kB / 19.44 MB, free: 352 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 157.7 kB / 22.75 MB, free: 1.68 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.608/1.608, allocations: 177.1 MB / 203.1 MB, free: 5.211 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.225/3.225, allocations: 429.6 MB / 0.673 GB, free: 3.875 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,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") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.366e-06/3.366e-06, allocations: 0 / 0.8776 GB, free: 6.461 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.275e-05/3.612e-05, allocations: 4.578 kB / 0.8776 GB, free: 6.457 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002575/0.002612, allocations: 0.7435 MB / 0.8783 GB, free: 5.738 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002046/0.004657, allocations: 1.089 MB / 0.8794 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.131e-05/0.004748, allocations: 0 / 0.8794 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.433e-05/0.004793, allocations: 7.875 kB / 0.8794 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.004901, allocations: 12.98 kB / 0.8794 GB, free: 4.621 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.005303, allocations: 55.77 kB / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001624/0.005466, allocations: 72.83 kB / 0.8795 GB, free: 4.496 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.005582, allocations: 12.17 kB / 0.8796 GB, free: 4.48 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.005721, allocations: 47.89 kB / 0.8796 GB, free: 4.434 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.528e-05/0.005796, allocations: 20.97 kB / 0.8796 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.061e-05/0.005827, allocations: 11.94 kB / 0.8796 GB, free: 4.402 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.815e-05/0.005925, allocations: 15.98 kB / 0.8796 GB, free: 4.387 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.998e-05/0.005965, allocations: 20.5 kB / 0.8797 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.537e-05/0.00602, allocations: 16.53 kB / 0.8797 GB, free: 4.352 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.006248, allocations: 87.72 kB / 0.8798 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.006256, allocations: 4.781 kB / 0.8798 GB, free: 4.262 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.102e-06/0.006257, allocations: 0 / 0.8798 GB, free: 4.262 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.006262, allocations: 4.812 kB / 0.8798 GB, free: 4.258 MB / 0.8386 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.0007088/0.006971, allocations: 299 kB / 0.8801 GB, free: 3.938 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.007019, allocations: 12.03 kB / 0.8801 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.98e-05/0.007109, allocations: 12.89 kB / 0.8801 GB, free: 3.914 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.007273, allocations: 118.7 kB / 0.8802 GB, free: 3.773 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.007295, allocations: 4.375 kB / 0.8802 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.007315, allocations: 9.906 kB / 0.8802 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.007569, allocations: 66.22 kB / 0.8803 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.00758, allocations: 192 / 0.8803 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.007594, allocations: 384 / 0.8803 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.007604, allocations: 5.094 kB / 0.8803 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.00782, allocations: 48.64 kB / 0.8803 GB, free: 3.641 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007776/0.008598, allocations: 260 kB / 0.8806 GB, free: 3.359 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.008809, allocations: 50.55 kB / 0.8806 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.008918, allocations: 29 kB / 0.8806 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.008947, allocations: 7.938 kB / 0.8807 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002712/0.009218, allocations: 75.38 kB / 0.8807 GB, free: 3.176 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.00922, allocations: 0.625 kB / 0.8807 GB, free: 3.176 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0005008/0.00972, allocations: 137.6 kB / 0.8809 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/0.009783, allocations: 55.34 kB / 0.8809 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.00994, allocations: 125.8 kB / 0.881 GB, free: 2.836 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.009971, allocations: 29.7 kB / 0.8811 GB, free: 2.801 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.29e-05/0.01005, allocations: 92.09 kB / 0.8811 GB, free: 2.707 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.01009, allocations: 23.83 kB / 0.8812 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.266e-05/0.01015, allocations: 25.72 kB / 0.8812 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001916/0.01034, allocations: 318.8 kB / 0.8815 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.01048, allocations: 39.91 kB / 0.8815 GB, free: 2.293 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.01064, allocations: 69.98 kB / 0.8816 GB, free: 2.203 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.01093, allocations: 113.8 kB / 0.8817 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.01094, allocations: 0 / 0.8817 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003947/0.01133, allocations: 137.4 kB / 0.8818 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.01135, allocations: 4 kB / 0.8818 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.01136, allocations: 0 / 0.8818 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.01138, allocations: 7.984 kB / 0.8819 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.01152, allocations: 24.14 kB / 0.8819 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.01153, allocations: 7.984 kB / 0.8819 GB, free: 1.887 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.628e-05/0.01162, allocations: 4 kB / 0.8819 GB, free: 1.883 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.01164, allocations: 8 kB / 0.8819 GB, free: 1.875 MB / 0.8386 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.0001293/0.01177, allocations: 121.8 kB / 0.882 GB, free: 1.746 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/0.0118, allocations: 11.89 kB / 0.882 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.728e-05/0.01185, allocations: 8.438 kB / 0.882 GB, free: 1.723 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.01186, allocations: 0 / 0.882 GB, free: 1.723 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.01186, allocations: 4 kB / 0.882 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.01186, allocations: 4 kB / 0.882 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005574/0.01242, allocations: 314 kB / 0.8823 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.01243, allocations: 4 kB / 0.8823 GB, free: 1.367 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.15e-05/0.01249, allocations: 11.98 kB / 0.8824 GB, free: 1.355 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.01249, allocations: 0 / 0.8824 GB, free: 1.355 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.01251, allocations: 4 kB / 0.8824 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.01251, allocations: 3.938 kB / 0.8824 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.01251, allocations: 0 / 0.8824 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004032/0.01292, allocations: 211.4 kB / 0.8826 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.544e-05/0.01293, allocations: 7.891 kB / 0.8826 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.01295, allocations: 4 kB / 0.8826 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.93e-05/0.01304, allocations: 7.984 kB / 0.8826 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.01309, allocations: 7.984 kB / 0.8826 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.0131, allocations: 4 kB / 0.8826 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.895e-05/0.01318, allocations: 95.2 kB / 0.8827 GB, free: 1 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.1e-08/0.01318, allocations: 0 / 0.8827 GB, free: 1 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002679/0.01345, allocations: 16 kB / 0.8827 GB, free: 0.9844 MB / 0.8386 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.0001995/0.01365, allocations: 111.2 kB / 0.8828 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003559/0.014, allocations: 76.34 kB / 0.8829 GB, free: 0.793 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.01401, allocations: 0 / 0.8829 GB, free: 0.793 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.01414, allocations: 31.97 kB / 0.8829 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.01445, allocations: 19.03 kB / 0.8829 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004914/0.01494, allocations: 169 kB / 0.8831 GB, free: 0.5508 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.337e-05/0.01503, allocations: 75.33 kB / 0.8832 GB, free: 468 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.646e-05/0.01507, allocations: 4 kB / 0.8832 GB, free: 464 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.458e-05/0.01511, allocations: 16.48 kB / 0.8832 GB, free: 448 kB / 0.8386 GB Notification: Performance of SimCode: time 4.71e-07/0.01511, allocations: 0 / 0.8832 GB, free: 448 kB / 0.8386 GB Notification: Performance of Templates: time 0.004446/0.01956, allocations: 1.036 MB / 0.8842 GB, free: 15.43 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 800] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.473989017074928]