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.0008332/0.0008332, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008732/0.0008732, allocations: 169.9 kB / 22.46 MB, free: 2.102 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.8786/0.8786, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.726/1.726, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_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_latest_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.365e-06/2.365e-06, allocations: 0 / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.72e-05/1.957e-05, allocations: 6.219 kB / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001345/0.001365, allocations: 0.7208 MB / 1 GB, free: 12.77 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001001/0.002365, allocations: 1.097 MB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.029e-05/0.002406, allocations: 0 / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.035e-05/0.002436, allocations: 7.922 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.178e-05/0.002498, allocations: 7.875 kB / 1.001 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002702/0.002768, allocations: 55.7 kB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 9.462e-05/0.002863, allocations: 79.7 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.75e-05/0.00296, allocations: 12.17 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 7.632e-05/0.003036, allocations: 47.89 kB / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.553e-05/0.003082, allocations: 23.91 kB / 1.002 GB, free: 11.43 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.003099, allocations: 8 kB / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.752e-05/0.003147, allocations: 19.98 kB / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.812e-05/0.003165, allocations: 7.984 kB / 1.002 GB, free: 11.39 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.128e-05/0.003196, allocations: 27.91 kB / 1.002 GB, free: 11.37 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.003315, allocations: 87.67 kB / 1.002 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.003317, allocations: 0 / 1.002 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.262e-06/0.003318, allocations: 0 / 1.002 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.003321, allocations: 4 kB / 1.002 GB, free: 11.28 MB / 0.9636 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.0003602/0.003682, allocations: 298.1 kB / 1.002 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.003721, allocations: 12.75 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.869e-05/0.00375, allocations: 34.75 kB / 1.002 GB, free: 10.9 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.872e-05/0.003778, allocations: 12.88 kB / 1.002 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.692e-05/0.003855, allocations: 117.7 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.003871, allocations: 4.375 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.003883, allocations: 8.375 kB / 1.002 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001347/0.004018, allocations: 70.16 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.004026, allocations: 192 / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-06/0.004034, allocations: 384 / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.004039, allocations: 7.938 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.877e-05/0.004128, allocations: 43.95 kB / 1.002 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004213/0.004549, allocations: 279.8 kB / 1.003 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/0.004662, allocations: 54.48 kB / 1.003 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.85e-05/0.00471, allocations: 24.97 kB / 1.003 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.004731, allocations: 15.94 kB / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/0.004865, allocations: 75.38 kB / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.004866, allocations: 0 / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.0002493/0.005115, allocations: 129.6 kB / 1.003 GB, free: 9.973 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.00515, allocations: 59.41 kB / 1.003 GB, free: 9.902 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.79e-05/0.005218, allocations: 125.8 kB / 1.003 GB, free: 9.77 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.00523, allocations: 25.7 kB / 1.003 GB, free: 9.738 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.918e-05/0.005269, allocations: 96.09 kB / 1.003 GB, free: 9.641 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.498e-05/0.005284, allocations: 19.78 kB / 1.003 GB, free: 9.621 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/0.00532, allocations: 33.7 kB / 1.003 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.764e-05/0.005397, allocations: 318.8 kB / 1.004 GB, free: 9.262 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.749e-05/0.005455, allocations: 27.97 kB / 1.004 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.08e-05/0.005525, allocations: 73.98 kB / 1.004 GB, free: 9.141 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.005664, allocations: 117.8 kB / 1.004 GB, free: 9.004 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.005667, allocations: 4 kB / 1.004 GB, free: 9 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001673/0.005834, allocations: 133.6 kB / 1.004 GB, free: 8.863 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.005847, allocations: 4 kB / 1.004 GB, free: 8.859 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.005851, allocations: 0 / 1.004 GB, free: 8.859 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.005862, allocations: 4 kB / 1.004 GB, free: 8.855 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.022e-05/0.005932, allocations: 19.92 kB / 1.004 GB, free: 8.836 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.005938, allocations: 4.312 kB / 1.004 GB, free: 8.832 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.8e-05/0.005976, allocations: 7.984 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.005985, allocations: 4 kB / 1.004 GB, free: 8.82 MB / 0.9636 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.243e-05/0.006048, allocations: 133.8 kB / 1.004 GB, free: 8.68 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-06/0.006055, allocations: 7.938 kB / 1.004 GB, free: 8.672 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.086e-05/0.006076, allocations: 16.38 kB / 1.004 GB, free: 8.656 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.006078, allocations: 3.938 kB / 1.004 GB, free: 8.652 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.788e-06/0.006082, allocations: 0 / 1.004 GB, free: 8.652 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.333e-05/0.006115, allocations: 3.984 kB / 1.004 GB, free: 8.648 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002675/0.006383, allocations: 341.5 kB / 1.004 GB, free: 8.266 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.006383, allocations: 0 / 1.004 GB, free: 8.266 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.297e-05/0.006406, allocations: 15.92 kB / 1.005 GB, free: 8.25 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.006408, allocations: 4 kB / 1.005 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-06/0.006414, allocations: 0 / 1.005 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.006415, allocations: 0 / 1.005 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.006416, allocations: 0 / 1.005 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001436/0.006559, allocations: 203.4 kB / 1.005 GB, free: 8.031 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-06/0.006566, allocations: 4 kB / 1.005 GB, free: 8.027 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.537e-06/0.006575, allocations: 0 / 1.005 GB, free: 8.027 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.027e-05/0.006616, allocations: 7.984 kB / 1.005 GB, free: 8.02 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.082e-05/0.006646, allocations: 11.98 kB / 1.005 GB, free: 8.008 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.006652, allocations: 7.938 kB / 1.005 GB, free: 8 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.559e-05/0.006687, allocations: 95.27 kB / 1.005 GB, free: 7.906 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.006687, allocations: 0 / 1.005 GB, free: 7.906 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001715/0.006859, allocations: 19.95 kB / 1.005 GB, free: 7.887 MB / 0.9636 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.0003994/0.007258, allocations: 0.7358 MB / 1.006 GB, free: 7.121 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001566/0.007415, allocations: 75.94 kB / 1.006 GB, free: 7.047 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.007416, allocations: 4 kB / 1.006 GB, free: 7.043 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.396e-05/0.00747, allocations: 27.92 kB / 1.006 GB, free: 7.016 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001846/0.007655, allocations: 32.53 kB / 1.006 GB, free: 6.988 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.009144, allocations: 1.519 MB / 1.007 GB, free: 5.348 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.003e-05/0.009194, allocations: 71.34 kB / 1.007 GB, free: 5.258 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.729e-05/0.009231, allocations: 11.98 kB / 1.007 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.312e-05/0.009274, allocations: 20.5 kB / 1.007 GB, free: 5.227 MB / 0.9636 GB Notification: Performance of SimCode: time 8.92e-07/0.009275, allocations: 4 kB / 1.007 GB, free: 5.223 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01527/0.02455, allocations: 2.811 MB / 1.01 GB, free: 2.559 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.507/6.531, allocations: 20.73 kB / 1.01 GB, free: 2.543 MB / 0.9636 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 840.0] 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: 10.496946405619383]