Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.0008321/0.0008321, 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.0008154/0.0008154, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.8777/0.8777, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.725/1.725, allocations: 389 MB / 0.633 GB, free: 12.7 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.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.326e-06/3.326e-06, allocations: 0 / 0.9996 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.001e-05/2.333e-05, allocations: 6.281 kB / 0.9997 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001473/0.001496, allocations: 0.6572 MB / 1 GB, free: 12.88 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001087/0.002583, allocations: 1.097 MB / 1.001 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.305e-05/0.002626, allocations: 8 kB / 1.001 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.612e-05/0.002652, allocations: 3.938 kB / 1.001 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.811e-05/0.00271, allocations: 7.875 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.003, allocations: 39.83 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 9.439e-05/0.003095, allocations: 51.84 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.635e-05/0.003191, allocations: 15.92 kB / 1.001 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 7.883e-05/0.00327, allocations: 35.84 kB / 1.002 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001903/0.00346, allocations: 11.98 kB / 1.002 GB, free: 11.6 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.907e-05/0.003479, allocations: 4 kB / 1.002 GB, free: 11.6 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.297e-05/0.003542, allocations: 31.91 kB / 1.002 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.32e-05/0.003566, allocations: 15.92 kB / 1.002 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.856e-05/0.003594, allocations: 12 kB / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.003734, allocations: 71.75 kB / 1.002 GB, free: 11.47 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.003736, allocations: 0 / 1.002 GB, free: 11.47 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.32e-07/0.003737, allocations: 0 / 1.002 GB, free: 11.47 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.003742, allocations: 0 / 1.002 GB, free: 11.47 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004501/0.004192, allocations: 294.2 kB / 1.002 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.004231, allocations: 8.75 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.044e-05/0.004261, allocations: 34.75 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.998e-05/0.004321, allocations: 12.89 kB / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.728e-05/0.004388, allocations: 105.8 kB / 1.002 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.004399, allocations: 8.375 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.00441, allocations: 8.312 kB / 1.002 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.004562, allocations: 62.23 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.00457, allocations: 4.172 kB / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.004579, allocations: 384 / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.004585, allocations: 8.125 kB / 1.002 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.957e-05/0.004685, allocations: 43.97 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003389/0.005024, allocations: 239.9 kB / 1.002 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000113/0.005137, allocations: 58.48 kB / 1.003 GB, free: 10.48 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.3e-05/0.00519, allocations: 28.97 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.005211, allocations: 3.938 kB / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001436/0.005354, allocations: 79.38 kB / 1.003 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.005356, allocations: 0 / 1.003 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.0002596/0.005615, allocations: 129.5 kB / 1.003 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.005648, allocations: 55.41 kB / 1.003 GB, free: 10.15 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.999e-05/0.005708, allocations: 109.8 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.231e-05/0.00572, allocations: 29.7 kB / 1.003 GB, free: 10 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 9.011e-05/0.00581, allocations: 84.08 kB / 1.003 GB, free: 9.914 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.753e-05/0.005828, allocations: 23.91 kB / 1.003 GB, free: 9.891 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-05/0.005861, allocations: 21.72 kB / 1.003 GB, free: 9.863 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.37e-05/0.005935, allocations: 318.8 kB / 1.003 GB, free: 9.543 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.062e-05/0.005985, allocations: 27.98 kB / 1.003 GB, free: 9.516 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.501e-05/0.00605, allocations: 64.2 kB / 1.003 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.006166, allocations: 96.17 kB / 1.004 GB, free: 9.328 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.006168, allocations: 0 / 1.004 GB, free: 9.328 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001517/0.00632, allocations: 125.4 kB / 1.004 GB, free: 9.199 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.006331, allocations: 4 kB / 1.004 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.006337, allocations: 4 kB / 1.004 GB, free: 9.191 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.006348, allocations: 0 / 1.004 GB, free: 9.191 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.761e-05/0.006415, allocations: 19.92 kB / 1.004 GB, free: 9.172 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.006422, allocations: 4 kB / 1.004 GB, free: 9.168 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.502e-05/0.006457, allocations: 12.11 kB / 1.004 GB, free: 9.156 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.006465, allocations: 4 kB / 1.004 GB, free: 9.152 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.277e-05/0.006528, allocations: 115.9 kB / 1.004 GB, free: 9.031 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-06/0.006537, allocations: 11.89 kB / 1.004 GB, free: 9.02 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.006701, allocations: 117.9 kB / 1.004 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.006705, allocations: 0 / 1.004 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.006709, allocations: 0 / 1.004 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.006713, allocations: 0 / 1.004 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.006978, allocations: 329.6 kB / 1.004 GB, free: 8.527 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.006979, allocations: 0 / 1.004 GB, free: 8.527 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.063e-05/0.007009, allocations: 15.98 kB / 1.004 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.007012, allocations: 4.188 kB / 1.004 GB, free: 8.508 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.007019, allocations: 0 / 1.004 GB, free: 8.508 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.007021, allocations: 4 kB / 1.004 GB, free: 8.504 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.007022, allocations: 0 / 1.004 GB, free: 8.504 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001467/0.007169, allocations: 199.4 kB / 1.004 GB, free: 8.293 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 5.651e-06/0.007174, allocations: 4 kB / 1.004 GB, free: 8.289 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.007188, allocations: 4 kB / 1.004 GB, free: 8.285 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.795e-05/0.007236, allocations: 11.98 kB / 1.004 GB, free: 8.273 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.877e-05/0.007265, allocations: 0 / 1.004 GB, free: 8.273 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.007278, allocations: 11.92 kB / 1.004 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.778e-05/0.007305, allocations: 83.28 kB / 1.005 GB, free: 8.18 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.007305, allocations: 0 / 1.005 GB, free: 8.18 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001697/0.007475, allocations: 15.95 kB / 1.005 GB, free: 8.164 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * 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.0004472/0.007922, allocations: 0.7436 MB / 1.005 GB, free: 7.391 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001591/0.008081, allocations: 63.89 kB / 1.005 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.008083, allocations: 0 / 1.005 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.904e-05/0.008142, allocations: 35.97 kB / 1.005 GB, free: 7.293 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001835/0.008326, allocations: 4.188 kB / 1.005 GB, free: 7.289 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.009351, allocations: 1.428 MB / 1.007 GB, free: 5.754 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.604e-05/0.009397, allocations: 71.34 kB / 1.007 GB, free: 5.664 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.666e-05/0.009423, allocations: 4 kB / 1.007 GB, free: 5.66 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.567e-05/0.009459, allocations: 24.48 kB / 1.007 GB, free: 5.637 MB / 0.9636 GB Notification: Performance of SimCode: time 6.51e-07/0.00946, allocations: 0 / 1.007 GB, free: 5.637 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01447/0.02393, allocations: 2.51 MB / 1.009 GB, free: 3.27 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.528/6.552, allocations: 9.969 kB / 1.009 GB, free: 3.262 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.523994771763682]