Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008234/0.0008234, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 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.0008471/0.0008471, allocations: 165.9 kB / 22.45 MB, free: 2.109 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 0.8783/0.8783, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.762/1.762, allocations: 377.9 MB / 0.6221 GB, free: 8.633 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.725e-06/2.725e-06, allocations: 0 / 0.981 GB, free: 2.562 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.173e-05/2.446e-05, allocations: 2.281 kB / 0.981 GB, free: 2.559 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001553/0.001578, allocations: 0.7362 MB / 0.9817 GB, free: 1.824 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001101/0.002679, allocations: 1.092 MB / 0.9828 GB, free: 0.7188 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.715e-05/0.002726, allocations: 4 kB / 0.9828 GB, free: 0.7148 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.022e-05/0.002756, allocations: 7.922 kB / 0.9828 GB, free: 0.707 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.919e-05/0.002825, allocations: 11.88 kB / 0.9828 GB, free: 0.6953 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003047/0.00313, allocations: 55.7 kB / 0.9828 GB, free: 0.6406 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.003233, allocations: 79.75 kB / 0.9829 GB, free: 0.5625 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.003337, allocations: 8.188 kB / 0.9829 GB, free: 0.5508 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 8.275e-05/0.00342, allocations: 47.88 kB / 0.983 GB, free: 0.5039 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.479e-05/0.003465, allocations: 19.98 kB / 0.983 GB, free: 496 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.003482, allocations: 4 kB / 0.983 GB, free: 492 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.33e-05/0.003535, allocations: 23.92 kB / 0.983 GB, free: 468 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.395e-05/0.003559, allocations: 15.97 kB / 0.983 GB, free: 452 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.279e-05/0.003592, allocations: 23.92 kB / 0.9831 GB, free: 428 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.003734, allocations: 83.72 kB / 0.9831 GB, free: 344 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.003737, allocations: 4 kB / 0.9831 GB, free: 340 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.693e-06/0.003739, allocations: 0 / 0.9831 GB, free: 340 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.003743, allocations: 0 / 0.9831 GB, free: 340 kB / 0.9323 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.000402/0.004145, allocations: 302 kB / 0.9834 GB, free: 8 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.004199, allocations: 12.08 kB / 0.9834 GB, free: 15.99 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.177e-05/0.004231, allocations: 42.69 kB / 0.9835 GB, free: 15.94 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.004259, allocations: 12.83 kB / 0.9835 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.146e-05/0.00434, allocations: 113.7 kB / 0.9836 GB, free: 15.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.004352, allocations: 4.375 kB / 0.9836 GB, free: 15.79 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.004364, allocations: 8.375 kB / 0.9836 GB, free: 15.79 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001383/0.004503, allocations: 66.22 kB / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.00451, allocations: 192 / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.004519, allocations: 4.312 kB / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.004524, allocations: 11.94 kB / 0.9837 GB, free: 15.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.971e-05/0.004614, allocations: 47.89 kB / 0.9837 GB, free: 15.65 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004437/0.005058, allocations: 268 kB / 0.984 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/0.005175, allocations: 62.52 kB / 0.984 GB, free: 15.28 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.878e-05/0.005224, allocations: 24.97 kB / 0.9841 GB, free: 15.25 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.005244, allocations: 4 kB / 0.9841 GB, free: 15.25 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001616/0.005405, allocations: 83.31 kB / 0.9842 GB, free: 15.15 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.005407, allocations: 0 / 0.9842 GB, free: 15.15 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0002691/0.005676, allocations: 129.6 kB / 0.9843 GB, free: 15.02 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.005714, allocations: 55.41 kB / 0.9843 GB, free: 14.95 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.519e-05/0.005789, allocations: 129.7 kB / 0.9845 GB, free: 14.82 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.005804, allocations: 29.7 kB / 0.9845 GB, free: 14.78 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.938e-05/0.005844, allocations: 88.14 kB / 0.9846 GB, free: 14.69 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.005859, allocations: 19.84 kB / 0.9846 GB, free: 14.67 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/0.005897, allocations: 29.7 kB / 0.9846 GB, free: 14.64 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.908e-05/0.005976, allocations: 318.8 kB / 0.9849 GB, free: 14.32 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.301e-05/0.006039, allocations: 31.97 kB / 0.985 GB, free: 14.29 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.584e-05/0.006114, allocations: 73.97 kB / 0.985 GB, free: 14.19 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001321/0.006247, allocations: 117.8 kB / 0.9851 GB, free: 14.05 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.006249, allocations: 0 / 0.9851 GB, free: 14.05 MB / 0.948 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001726/0.006421, allocations: 129.6 kB / 0.9853 GB, free: 13.92 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.006435, allocations: 8 kB / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.00644, allocations: 0 / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.006454, allocations: 4 kB / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.533e-05/0.006539, allocations: 23.92 kB / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.006544, allocations: 0 / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.647e-05/0.00659, allocations: 15.94 kB / 0.9853 GB, free: 13.87 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.006599, allocations: 4 kB / 0.9853 GB, free: 13.87 MB / 0.948 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.864e-05/0.006668, allocations: 121.7 kB / 0.9854 GB, free: 13.74 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.558e-06/0.006677, allocations: 20 kB / 0.9854 GB, free: 13.72 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.356e-05/0.006701, allocations: 8.438 kB / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.006704, allocations: 3.984 kB / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.006709, allocations: 0 / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.006713, allocations: 0 / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002988/0.007012, allocations: 333.5 kB / 0.9858 GB, free: 13.33 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.007014, allocations: 0 / 0.9858 GB, free: 13.33 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.656e-05/0.00704, allocations: 11.98 kB / 0.9858 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.007044, allocations: 7.938 kB / 0.9858 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.007051, allocations: 4 kB / 0.9858 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.007052, allocations: 0 / 0.9858 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.007054, allocations: 8.328 kB / 0.9858 GB, free: 13.3 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001538/0.007208, allocations: 215.3 kB / 0.986 GB, free: 13.07 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 9.648e-06/0.007218, allocations: 7.953 kB / 0.986 GB, free: 13.07 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.056e-05/0.007229, allocations: 0 / 0.986 GB, free: 13.07 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.041e-05/0.007269, allocations: 7.984 kB / 0.986 GB, free: 13.06 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.646e-05/0.007305, allocations: 7.984 kB / 0.986 GB, free: 13.05 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.007314, allocations: 11.94 kB / 0.986 GB, free: 13.04 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.566e-05/0.007349, allocations: 91.27 kB / 0.9861 GB, free: 12.95 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007349, allocations: 0 / 0.9861 GB, free: 12.95 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001752/0.007524, allocations: 16 kB / 0.9861 GB, free: 12.93 MB / 0.948 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.0003966/0.007921, allocations: 0.7407 MB / 0.9869 GB, free: 12.17 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001685/0.00809, allocations: 75.94 kB / 0.9869 GB, free: 12.09 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.008092, allocations: 4 kB / 0.9869 GB, free: 12.09 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.716e-05/0.008149, allocations: 31.91 kB / 0.987 GB, free: 12.06 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.008359, allocations: 26.44 kB / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.009518, allocations: 1.518 MB / 0.9885 GB, free: 10.39 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.009739, allocations: 79.52 kB / 0.9886 GB, free: 10.3 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.898e-05/0.009768, allocations: 4 kB / 0.9886 GB, free: 10.29 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.282e-05/0.009811, allocations: 20.5 kB / 0.9886 GB, free: 10.27 MB / 0.948 GB Notification: Performance of SimCode: time 6.31e-07/0.009812, allocations: 0 / 0.9886 GB, free: 10.27 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01647/0.02629, allocations: 2.823 MB / 0.9913 GB, free: 7.609 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.628/6.654, allocations: 2.922 kB / 0.9913 GB, free: 7.609 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.754099318757653]