Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0008597/0.0008597, allocations: 108.3 kB / 19.72 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.001038/0.001038, allocations: 219.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.9631/0.9631, allocations: 230.6 MB / 256.8 MB, free: 9.621 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.079/2.079, allocations: 0.5045 GB / 0.8104 GB, free: 2.73 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.FirstOrderHold,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.0009294/0.0009294, allocations: 67.89 kB / 1.177 GB, free: 11.96 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.791/0.7919, allocations: 180 MB / 1.352 GB, free: 1.617 MB / 1.026 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001601/0.7935, allocations: 0.6784 MB / 1.353 GB, free: 0.9414 MB / 1.026 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.7947, allocations: 1.089 MB / 1.354 GB, free: 15.84 MB / 1.042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.623e-05/0.7947, allocations: 4 kB / 1.354 GB, free: 15.84 MB / 1.042 GB Notification: Performance of NFTyping.typeComponents: time 3.119e-05/0.7947, allocations: 7.875 kB / 1.354 GB, free: 15.83 MB / 1.042 GB Notification: Performance of NFTyping.typeBindings: time 7.163e-05/0.7948, allocations: 15.91 kB / 1.354 GB, free: 15.81 MB / 1.042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.7951, allocations: 47.83 kB / 1.354 GB, free: 15.77 MB / 1.042 GB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.7952, allocations: 67.83 kB / 1.354 GB, free: 15.7 MB / 1.042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.7953, allocations: 8 kB / 1.354 GB, free: 15.69 MB / 1.042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.96e-05/0.7954, allocations: 27.92 kB / 1.354 GB, free: 15.66 MB / 1.042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.43e-05/0.7955, allocations: 31.83 kB / 1.354 GB, free: 15.63 MB / 1.042 GB Notification: Performance of NFPackage.collectConstants: time 1.541e-05/0.7955, allocations: 8 kB / 1.354 GB, free: 15.62 MB / 1.042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.587e-05/0.7955, allocations: 27.98 kB / 1.354 GB, free: 15.6 MB / 1.042 GB Notification: Performance of NFScalarize.scalarize: time 2.249e-05/0.7956, allocations: 15.98 kB / 1.354 GB, free: 15.58 MB / 1.042 GB Notification: Performance of NFVerifyModel.verify: time 3.794e-05/0.7956, allocations: 31.84 kB / 1.354 GB, free: 15.55 MB / 1.042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.7957, allocations: 78 kB / 1.355 GB, free: 15.48 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.7957, allocations: 0 / 1.355 GB, free: 15.48 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.454e-06/0.7957, allocations: 0 / 1.355 GB, free: 15.48 MB / 1.042 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.7958, allocations: 3.938 kB / 1.355 GB, free: 15.47 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004837/0.7962, allocations: 303.9 kB / 1.355 GB, free: 15.14 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.7963, allocations: 12.92 kB / 1.355 GB, free: 15.13 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.525e-05/0.7963, allocations: 42.73 kB / 1.355 GB, free: 15.08 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.506e-05/0.7964, allocations: 8.891 kB / 1.355 GB, free: 15.07 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.247e-05/0.7965, allocations: 118.4 kB / 1.355 GB, free: 14.93 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.7965, allocations: 8.375 kB / 1.355 GB, free: 14.93 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.7965, allocations: 4.375 kB / 1.355 GB, free: 14.92 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001568/0.7967, allocations: 82.14 kB / 1.355 GB, free: 14.84 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.7967, allocations: 7.938 kB / 1.355 GB, free: 14.83 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.7967, allocations: 0 / 1.355 GB, free: 14.83 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.7967, allocations: 0 / 1.355 GB, free: 14.83 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.7968, allocations: 55.95 kB / 1.355 GB, free: 14.77 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004096/0.7972, allocations: 271.8 kB / 1.355 GB, free: 14.46 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/0.7973, allocations: 74.53 kB / 1.355 GB, free: 14.38 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.14e-05/0.7974, allocations: 36.83 kB / 1.356 GB, free: 14.34 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.7974, allocations: 4 kB / 1.356 GB, free: 14.34 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000188/0.7976, allocations: 91.5 kB / 1.356 GB, free: 14.24 MB / 1.042 GB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.7976, allocations: 0 / 1.356 GB, free: 14.24 MB / 1.042 GB Notification: Performance of matching and sorting (n=10): time 0.000323/0.7979, allocations: 177.5 kB / 1.356 GB, free: 14.06 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.798, allocations: 59.39 kB / 1.356 GB, free: 13.99 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.344e-05/0.798, allocations: 101.9 kB / 1.356 GB, free: 13.88 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.7981, allocations: 33.69 kB / 1.356 GB, free: 13.84 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 4.177e-05/0.7981, allocations: 92.47 kB / 1.356 GB, free: 13.74 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.7981, allocations: 31.69 kB / 1.356 GB, free: 13.71 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/0.7982, allocations: 29.7 kB / 1.356 GB, free: 13.68 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 8.524e-05/0.7983, allocations: 331.1 kB / 1.356 GB, free: 13.34 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.704e-05/0.7983, allocations: 35.97 kB / 1.356 GB, free: 13.31 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.538e-05/0.7984, allocations: 58.55 kB / 1.357 GB, free: 13.24 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001403/0.7986, allocations: 102.5 kB / 1.357 GB, free: 13.13 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.7986, allocations: 3.938 kB / 1.357 GB, free: 13.13 MB / 1.042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000187/0.7987, allocations: 141.5 kB / 1.357 GB, free: 12.98 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.7988, allocations: 6.5 kB / 1.357 GB, free: 12.98 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.7988, allocations: 0 / 1.357 GB, free: 12.98 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.7988, allocations: 4 kB / 1.357 GB, free: 12.98 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.164e-05/0.7989, allocations: 27.86 kB / 1.357 GB, free: 12.95 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.7989, allocations: 4 kB / 1.357 GB, free: 12.95 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.69e-05/0.7989, allocations: 11.92 kB / 1.357 GB, free: 12.93 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.7989, allocations: 8.062 kB / 1.357 GB, free: 12.93 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.308e-05/0.799, allocations: 134.3 kB / 1.357 GB, free: 12.79 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.869e-06/0.799, allocations: 7.938 kB / 1.357 GB, free: 12.78 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002207/0.7992, allocations: 142.2 kB / 1.357 GB, free: 12.63 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.7992, allocations: 0 / 1.357 GB, free: 12.63 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.7992, allocations: 7.984 kB / 1.357 GB, free: 12.62 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.7992, allocations: 4 kB / 1.357 GB, free: 12.62 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003597/0.7996, allocations: 377.5 kB / 1.357 GB, free: 12.2 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.7996, allocations: 0 / 1.357 GB, free: 12.2 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.788e-05/0.7996, allocations: 15.92 kB / 1.357 GB, free: 12.18 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.7997, allocations: 0 / 1.357 GB, free: 12.18 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.7997, allocations: 0 / 1.357 GB, free: 12.18 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.7997, allocations: 0 / 1.357 GB, free: 12.18 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.7997, allocations: 0 / 1.357 GB, free: 12.18 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001996/0.7999, allocations: 251.4 kB / 1.358 GB, free: 11.92 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.137e-06/0.7999, allocations: 7.891 kB / 1.358 GB, free: 11.91 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.7999, allocations: 8.094 kB / 1.358 GB, free: 11.91 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.449e-05/0.7999, allocations: 15.92 kB / 1.358 GB, free: 11.89 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.947e-05/0.8, allocations: 11.92 kB / 1.358 GB, free: 11.88 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.8, allocations: 0 / 1.358 GB, free: 11.88 MB / 1.042 GB Notification: Performance of sorting global known variables: time 3.524e-05/0.8, allocations: 91.27 kB / 1.358 GB, free: 11.79 MB / 1.042 GB Notification: Performance of sort global known variables: time 5e-08/0.8, allocations: 0 / 1.358 GB, free: 11.79 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0001892/0.8002, allocations: 20 kB / 1.358 GB, free: 11.77 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0004496/0.8007, allocations: 0.771 MB / 1.359 GB, free: 10.97 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0002026/0.8009, allocations: 95.88 kB / 1.359 GB, free: 10.88 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.8009, allocations: 0 / 1.359 GB, free: 10.88 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 7.138e-05/0.8009, allocations: 43.91 kB / 1.359 GB, free: 10.84 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.8012, allocations: 7.938 kB / 1.359 GB, free: 10.83 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.8024, allocations: 1.503 MB / 1.36 GB, free: 9.238 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.188e-05/0.8024, allocations: 75.22 kB / 1.36 GB, free: 9.145 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 3.284e-05/0.8024, allocations: 12.42 kB / 1.36 GB, free: 9.133 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.165e-05/0.8025, allocations: 15.44 kB / 1.36 GB, free: 9.117 MB / 1.042 GB Notification: Performance of SimCode: time 8.52e-07/0.8025, allocations: 4.281 kB / 1.36 GB, free: 9.113 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08542/0.8879, allocations: 2.647 MB / 1.363 GB, free: 6.617 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.094/7.982, allocations: 3.984 kB / 1.363 GB, free: 6.613 MB / 1.042 GB " [Timeout remaining time 292] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_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_FirstOrderHold.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.02200700622052]