Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_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.0009062/0.0009062, allocations: 108.3 kB / 19.73 MB, free: 420 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.0007951/0.0007951, allocations: 214.8 kB / 23.03 MB, free: 2.953 MB / 13.93 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.975/0.975, allocations: 230.6 MB / 256.8 MB, free: 9.605 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 2.051/2.051, allocations: 0.5045 GB / 0.8104 GB, free: 2.75 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.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.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 67.89 kB / 1.177 GB, free: 11.99 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.789/0.7901, allocations: 180 MB / 1.352 GB, free: 1.684 MB / 1.026 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001857/0.7919, allocations: 0.6667 MB / 1.353 GB, free: 1.02 MB / 1.026 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.793, allocations: 1.085 MB / 1.354 GB, free: 15.92 MB / 1.042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.725e-05/0.7931, allocations: 0 / 1.354 GB, free: 15.92 MB / 1.042 GB Notification: Performance of NFTyping.typeComponents: time 3.11e-05/0.7931, allocations: 3.938 kB / 1.354 GB, free: 15.92 MB / 1.042 GB Notification: Performance of NFTyping.typeBindings: time 6.932e-05/0.7932, allocations: 7.922 kB / 1.354 GB, free: 15.91 MB / 1.042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002958/0.7935, allocations: 55.83 kB / 1.354 GB, free: 15.86 MB / 1.042 GB Notification: Performance of NFFlatten.flatten: time 9.568e-05/0.7936, allocations: 47.86 kB / 1.354 GB, free: 15.81 MB / 1.042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.39e-05/0.7937, allocations: 3.984 kB / 1.354 GB, free: 15.8 MB / 1.042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.757e-05/0.7937, allocations: 31.91 kB / 1.354 GB, free: 15.77 MB / 1.042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.573e-05/0.7938, allocations: 15.92 kB / 1.354 GB, free: 15.76 MB / 1.042 GB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.7938, allocations: 8 kB / 1.354 GB, free: 15.75 MB / 1.042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.609e-05/0.7939, allocations: 23.98 kB / 1.354 GB, free: 15.73 MB / 1.042 GB Notification: Performance of NFScalarize.scalarize: time 2.38e-05/0.7939, allocations: 11.92 kB / 1.354 GB, free: 15.71 MB / 1.042 GB Notification: Performance of NFVerifyModel.verify: time 3.078e-05/0.7939, allocations: 15.92 kB / 1.354 GB, free: 15.7 MB / 1.042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.7941, allocations: 66.03 kB / 1.354 GB, free: 15.64 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.7941, allocations: 0 / 1.354 GB, free: 15.64 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.155e-06/0.7941, allocations: 0 / 1.354 GB, free: 15.64 MB / 1.042 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.7941, allocations: 3.984 kB / 1.354 GB, free: 15.63 MB / 1.042 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.0004566/0.7945, allocations: 290.2 kB / 1.355 GB, free: 15.32 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.7946, allocations: 16.88 kB / 1.355 GB, free: 15.3 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.104e-05/0.7946, allocations: 34.69 kB / 1.355 GB, free: 15.26 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.618e-05/0.7947, allocations: 24.81 kB / 1.355 GB, free: 15.23 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.683e-05/0.7948, allocations: 110.5 kB / 1.355 GB, free: 15.1 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.7948, allocations: 4.375 kB / 1.355 GB, free: 15.1 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.916e-06/0.7948, allocations: 384 / 1.355 GB, free: 15.1 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.7949, allocations: 66.22 kB / 1.355 GB, free: 15.03 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.7949, allocations: 3.938 kB / 1.355 GB, free: 15.02 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.795, allocations: 0 / 1.355 GB, free: 15.02 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.795, allocations: 0 / 1.355 GB, free: 15.02 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.7951, allocations: 47.95 kB / 1.355 GB, free: 14.98 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000376/0.7954, allocations: 251.8 kB / 1.355 GB, free: 14.69 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.7955, allocations: 50.55 kB / 1.355 GB, free: 14.63 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.205e-05/0.7956, allocations: 32.91 kB / 1.355 GB, free: 14.59 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.7956, allocations: 3.984 kB / 1.355 GB, free: 14.59 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/0.7958, allocations: 83.39 kB / 1.355 GB, free: 14.5 MB / 1.042 GB Notification: Performance of pre-optimization done (n=7): time 1.864e-06/0.7958, allocations: 0 / 1.355 GB, free: 14.5 MB / 1.042 GB Notification: Performance of matching and sorting (n=7): time 0.0002817/0.7961, allocations: 125.6 kB / 1.356 GB, free: 14.37 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.7961, allocations: 55.39 kB / 1.356 GB, free: 14.3 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.229e-05/0.7962, allocations: 101.9 kB / 1.356 GB, free: 14.19 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.7962, allocations: 29.7 kB / 1.356 GB, free: 14.16 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 4.516e-05/0.7962, allocations: 92.08 kB / 1.356 GB, free: 14.06 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.7963, allocations: 11.91 kB / 1.356 GB, free: 14.05 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.653e-05/0.7963, allocations: 33.7 kB / 1.356 GB, free: 14.01 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 9.046e-05/0.7964, allocations: 314.8 kB / 1.356 GB, free: 13.7 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.839e-05/0.7964, allocations: 31.97 kB / 1.356 GB, free: 13.66 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.041e-05/0.7965, allocations: 56.2 kB / 1.356 GB, free: 13.59 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.7966, allocations: 92.2 kB / 1.356 GB, free: 13.49 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.7966, allocations: 0 / 1.356 GB, free: 13.49 MB / 1.042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001592/0.7968, allocations: 125.5 kB / 1.356 GB, free: 13.36 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.7968, allocations: 4 kB / 1.356 GB, free: 13.36 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.7968, allocations: 3.984 kB / 1.356 GB, free: 13.35 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.7968, allocations: 4 kB / 1.356 GB, free: 13.35 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.939e-05/0.7969, allocations: 15.98 kB / 1.356 GB, free: 13.33 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.7969, allocations: 4.125 kB / 1.356 GB, free: 13.33 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.465e-05/0.797, allocations: 12 kB / 1.356 GB, free: 13.32 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.797, allocations: 4 kB / 1.356 GB, free: 13.31 MB / 1.042 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 8.224e-05/0.797, allocations: 134.1 kB / 1.357 GB, free: 13.17 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.246e-06/0.7971, allocations: 3.953 kB / 1.357 GB, free: 13.17 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001811/0.7972, allocations: 110 kB / 1.357 GB, free: 13.05 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.7972, allocations: 0 / 1.357 GB, free: 13.05 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.7972, allocations: 0 / 1.357 GB, free: 13.05 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.7972, allocations: 4.25 kB / 1.357 GB, free: 13.05 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002879/0.7975, allocations: 329.5 kB / 1.357 GB, free: 12.68 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.7975, allocations: 4 kB / 1.357 GB, free: 12.67 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.321e-05/0.7976, allocations: 11.98 kB / 1.357 GB, free: 12.66 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.7976, allocations: 0 / 1.357 GB, free: 12.66 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.7976, allocations: 0 / 1.357 GB, free: 12.66 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.7976, allocations: 0 / 1.357 GB, free: 12.66 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.7976, allocations: 192 / 1.357 GB, free: 12.66 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001651/0.7977, allocations: 207.3 kB / 1.357 GB, free: 12.44 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 7.675e-06/0.7978, allocations: 7.938 kB / 1.357 GB, free: 12.43 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.7978, allocations: 4 kB / 1.357 GB, free: 12.43 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.835e-05/0.7978, allocations: 11.98 kB / 1.357 GB, free: 12.42 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.098e-05/0.7979, allocations: 7.922 kB / 1.357 GB, free: 12.41 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.7979, allocations: 4 kB / 1.357 GB, free: 12.41 MB / 1.042 GB Notification: Performance of sorting global known variables: time 3.179e-05/0.7979, allocations: 83.28 kB / 1.357 GB, free: 12.32 MB / 1.042 GB Notification: Performance of sort global known variables: time 5e-08/0.7979, allocations: 0 / 1.357 GB, free: 12.32 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0001699/0.7981, allocations: 12 kB / 1.357 GB, free: 12.31 MB / 1.042 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.0004011/0.7985, allocations: 0.7426 MB / 1.358 GB, free: 11.55 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0001787/0.7987, allocations: 67.88 kB / 1.358 GB, free: 11.48 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.7987, allocations: 0 / 1.358 GB, free: 11.48 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 7.027e-05/0.7987, allocations: 39.91 kB / 1.358 GB, free: 11.44 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.799, allocations: 12.19 kB / 1.358 GB, free: 11.43 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.8001, allocations: 1.413 MB / 1.36 GB, free: 9.91 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.349e-05/0.8002, allocations: 63.34 kB / 1.36 GB, free: 9.828 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 3.262e-05/0.8002, allocations: 11.98 kB / 1.36 GB, free: 9.816 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.8002, allocations: 15.44 kB / 1.36 GB, free: 9.805 MB / 1.042 GB Notification: Performance of SimCode: time 7.81e-07/0.8002, allocations: 3.938 kB / 1.36 GB, free: 9.801 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0997/0.8999, allocations: 2.384 MB / 1.362 GB, free: 7.562 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/8.04, allocations: 3.938 kB / 1.362 GB, free: 7.559 MB / 1.042 GB " [Timeout remaining time 292] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.053850201889873]