Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 106.9 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.753/2.753, allocations: 476.7 MB / 0.7611 GB, free: 11.34 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002075/0.002075, allocations: 63.91 kB / 1.104 GB, free: 9.285 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.886/0.888, allocations: 168.7 MB / 1.269 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002206/0.8902, allocations: 0.6787 MB / 1.269 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00171/0.8919, allocations: 1.065 MB / 1.27 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.483e-05/0.892, allocations: 0 / 1.27 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.989e-05/0.892, allocations: 7.938 kB / 1.27 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.455e-05/0.8921, allocations: 11.92 kB / 1.27 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003069/0.8924, allocations: 39.83 kB / 1.27 GB, free: 3.477 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.8925, allocations: 55.78 kB / 1.271 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.8926, allocations: 11.98 kB / 1.271 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.791e-05/0.8927, allocations: 19.92 kB / 1.271 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.162e-05/0.8928, allocations: 23.92 kB / 1.271 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.605e-05/0.8928, allocations: 4 kB / 1.271 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.291e-05/0.8929, allocations: 19.92 kB / 1.271 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.392e-05/0.8929, allocations: 11.98 kB / 1.271 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.277e-05/0.8929, allocations: 27.84 kB / 1.271 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.8931, allocations: 57.62 kB / 1.271 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.8931, allocations: 0 / 1.271 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.723e-06/0.8931, allocations: 0 / 1.271 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.69e-06/0.8931, allocations: 0 / 1.271 GB, free: 3.25 MB / 0.9669 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.000694/0.8938, allocations: 379.2 kB / 1.271 GB, free: 2.828 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.8938, allocations: 8.031 kB / 1.271 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.19e-05/0.8939, allocations: 38.73 kB / 1.271 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.22e-05/0.8939, allocations: 4.938 kB / 1.271 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.8941, allocations: 168.3 kB / 1.271 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.8941, allocations: 4.375 kB / 1.271 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.8941, allocations: 8.312 kB / 1.271 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.8943, allocations: 62.22 kB / 1.271 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.8943, allocations: 7.938 kB / 1.271 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.8943, allocations: 0 / 1.271 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.8943, allocations: 0 / 1.271 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.8945, allocations: 47.95 kB / 1.271 GB, free: 2.434 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005106/0.8951, allocations: 272.8 kB / 1.272 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.8952, allocations: 60.03 kB / 1.272 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.845e-05/0.8953, allocations: 28.95 kB / 1.272 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.8953, allocations: 4 kB / 1.272 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002456/0.8956, allocations: 83.39 kB / 1.272 GB, free: 1.922 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.402e-06/0.8956, allocations: 0 / 1.272 GB, free: 1.922 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004243/0.896, allocations: 125.6 kB / 1.272 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.8961, allocations: 59.41 kB / 1.272 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.985e-05/0.8962, allocations: 101.8 kB / 1.272 GB, free: 1.613 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.8962, allocations: 29.7 kB / 1.272 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.682e-05/0.8962, allocations: 84.14 kB / 1.272 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.294e-05/0.8963, allocations: 19.8 kB / 1.272 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-05/0.8963, allocations: 25.7 kB / 1.272 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.8965, allocations: 318.8 kB / 1.273 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.8966, allocations: 31.97 kB / 1.273 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.8967, allocations: 60.2 kB / 1.273 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002155/0.8969, allocations: 96.19 kB / 1.273 GB, free: 0.9062 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.8969, allocations: 0 / 1.273 GB, free: 0.9062 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002871/0.8972, allocations: 117.5 kB / 1.273 GB, free: 0.7852 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.8972, allocations: 4 kB / 1.273 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.8972, allocations: 4.047 kB / 1.273 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.8972, allocations: 4.109 kB / 1.273 GB, free: 0.7734 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.8973, allocations: 23.92 kB / 1.273 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.8974, allocations: 7.938 kB / 1.273 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.989e-05/0.8974, allocations: 8 kB / 1.273 GB, free: 0.7344 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.8974, allocations: 8.234 kB / 1.273 GB, free: 0.7266 MB / 0.9669 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 9.956e-05/0.8975, allocations: 117.8 kB / 1.273 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.8976, allocations: 7.953 kB / 1.273 GB, free: 0.5938 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003299/0.8979, allocations: 113.9 kB / 1.273 GB, free: 480 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.8979, allocations: 0 / 1.273 GB, free: 480 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/0.8979, allocations: 4 kB / 1.273 GB, free: 476 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.8979, allocations: 0 / 1.273 GB, free: 476 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005243/0.8984, allocations: 358.4 kB / 1.273 GB, free: 60 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.8984, allocations: 7.984 kB / 1.273 GB, free: 52 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.105e-05/0.8985, allocations: 7.938 kB / 1.274 GB, free: 44 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.8985, allocations: 8 kB / 1.274 GB, free: 36 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.8985, allocations: 7.984 kB / 1.274 GB, free: 28 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.8985, allocations: 0 / 1.274 GB, free: 28 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.8985, allocations: 480 / 1.274 GB, free: 28 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003567/0.8989, allocations: 195.4 kB / 1.274 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.147e-05/0.8989, allocations: 81.09 kB / 1.274 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.8989, allocations: 8 kB / 1.274 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.575e-05/0.899, allocations: 11.98 kB / 1.274 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.8991, allocations: 7.938 kB / 1.274 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.8991, allocations: 0 / 1.274 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.062e-05/0.8992, allocations: 87.27 kB / 1.274 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.8992, allocations: 0 / 1.274 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002434/0.8994, allocations: 12 kB / 1.274 GB, free: 15.6 MB / 0.9825 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.0007248/0.9001, allocations: 0.7402 MB / 1.275 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002605/0.9004, allocations: 71.86 kB / 1.275 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.9004, allocations: 0 / 1.275 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.9005, allocations: 40.17 kB / 1.275 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.9008, allocations: 18.11 kB / 1.275 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.9028, allocations: 1.419 MB / 1.276 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005282/0.9033, allocations: 0.6845 MB / 1.277 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.784e-05/0.9033, allocations: 7.984 kB / 1.277 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.293e-05/0.9034, allocations: 19.44 kB / 1.277 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of SimCode: time 4.1e-07/0.9034, allocations: 0 / 1.277 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0259/0.9293, allocations: 1.828 MB / 1.279 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.143/9.072, allocations: 19.77 kB / 1.279 GB, free: 10.72 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 15.080104029737413]