Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.001187/0.001187, allocations: 80.55 kB / 19.96 MB, free: 4.605 MB / 18.57 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.001338/0.001338, allocations: 173.2 kB / 23.24 MB, free: 1.328 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.9598/0.9598, allocations: 177.2 MB / 203.6 MB, free: 5.727 MB / 186.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 1.848/1.848, allocations: 389.6 MB / 0.6343 GB, free: 12.61 MB / 0.6042 GB " [Timeout remaining time 178] 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.UnitDelay,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 1.001 GB, free: 13.57 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.078e-05/1.221e-05, allocations: 9.797 kB / 1.001 GB, free: 13.57 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001116/0.001128, allocations: 0.6584 MB / 1.001 GB, free: 12.91 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0009425/0.002071, allocations: 1.078 MB / 1.002 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.25e-05/0.002113, allocations: 0 / 1.002 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.322e-05/0.002136, allocations: 3.938 kB / 1.002 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.25e-05/0.002199, allocations: 15.88 kB / 1.002 GB, free: 11.8 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.002439, allocations: 55.64 kB / 1.002 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 7.6e-05/0.002515, allocations: 39.86 kB / 1.002 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.149e-05/0.002596, allocations: 11.98 kB / 1.002 GB, free: 11.7 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 7.138e-05/0.002668, allocations: 31.91 kB / 1.003 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 3.843e-05/0.002706, allocations: 15.97 kB / 1.003 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.002719, allocations: 4 kB / 1.003 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.086e-05/0.00278, allocations: 16 kB / 1.003 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.094e-05/0.002801, allocations: 19.91 kB / 1.003 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.649e-05/0.002828, allocations: 11.98 kB / 1.003 GB, free: 11.6 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001195/0.002947, allocations: 63.78 kB / 1.003 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.00295, allocations: 4 kB / 1.003 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of FrontEnd: time 4.71e-07/0.00295, allocations: 0 / 1.003 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.002954, allocations: 0 / 1.003 GB, free: 11.53 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003818/0.003335, allocations: 282.2 kB / 1.003 GB, free: 11.22 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.003372, allocations: 9.344 kB / 1.003 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.307e-05/0.003405, allocations: 38.75 kB / 1.003 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.041e-05/0.003465, allocations: 8.875 kB / 1.003 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.176e-05/0.003537, allocations: 117.7 kB / 1.003 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.003548, allocations: 4.375 kB / 1.003 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.003558, allocations: 12.38 kB / 1.003 GB, free: 11 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001211/0.003679, allocations: 62.2 kB / 1.003 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.003687, allocations: 192 / 1.003 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.003696, allocations: 4.375 kB / 1.003 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.003701, allocations: 4.125 kB / 1.003 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.129e-05/0.003792, allocations: 35.97 kB / 1.003 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003399/0.004132, allocations: 247.9 kB / 1.003 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.004233, allocations: 58.48 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.66e-05/0.00428, allocations: 24.97 kB / 1.004 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.004299, allocations: 7.922 kB / 1.004 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001089/0.004408, allocations: 71.39 kB / 1.004 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.004409, allocations: 0 / 1.004 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0002377/0.004647, allocations: 129.5 kB / 1.004 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.004674, allocations: 51.41 kB / 1.004 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.736e-05/0.004732, allocations: 109.8 kB / 1.004 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.004743, allocations: 29.7 kB / 1.004 GB, free: 10.08 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.437e-05/0.004777, allocations: 84.14 kB / 1.004 GB, free: 9.992 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.803e-05/0.004795, allocations: 27.89 kB / 1.004 GB, free: 9.965 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.004825, allocations: 21.72 kB / 1.004 GB, free: 9.938 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.008e-05/0.004895, allocations: 322.8 kB / 1.004 GB, free: 9.613 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.982e-05/0.004945, allocations: 19.98 kB / 1.004 GB, free: 9.594 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.744e-05/0.005013, allocations: 68.2 kB / 1.004 GB, free: 9.512 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.005129, allocations: 88.12 kB / 1.004 GB, free: 9.41 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.005131, allocations: 4 kB / 1.004 GB, free: 9.406 MB / 0.9636 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001412/0.005273, allocations: 113.5 kB / 1.005 GB, free: 9.289 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.005284, allocations: 11.98 kB / 1.005 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.005288, allocations: 0 / 1.005 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.005298, allocations: 0 / 1.005 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.458e-05/0.005363, allocations: 19.92 kB / 1.005 GB, free: 9.258 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.005368, allocations: 4 kB / 1.005 GB, free: 9.254 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.3e-05/0.005401, allocations: 8 kB / 1.005 GB, free: 9.246 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.005408, allocations: 4.156 kB / 1.005 GB, free: 9.242 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 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 5.826e-05/0.005467, allocations: 124.5 kB / 1.005 GB, free: 9.113 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.414e-06/0.005474, allocations: 7.891 kB / 1.005 GB, free: 9.105 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001501/0.005624, allocations: 106 kB / 1.005 GB, free: 8.996 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.005625, allocations: 0 / 1.005 GB, free: 8.996 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.005629, allocations: 0 / 1.005 GB, free: 8.996 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.005632, allocations: 3.984 kB / 1.005 GB, free: 8.992 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002408/0.005873, allocations: 313.6 kB / 1.005 GB, free: 8.637 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.005874, allocations: 4 kB / 1.005 GB, free: 8.633 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.899e-05/0.005903, allocations: 15.94 kB / 1.005 GB, free: 8.617 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.005904, allocations: 0 / 1.005 GB, free: 8.617 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.005911, allocations: 4.359 kB / 1.005 GB, free: 8.613 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.005912, allocations: 0 / 1.005 GB, free: 8.613 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.005914, allocations: 4 kB / 1.005 GB, free: 8.609 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/0.006059, allocations: 191.4 kB / 1.005 GB, free: 8.406 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 5.079e-06/0.006064, allocations: 0 / 1.005 GB, free: 8.406 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.006079, allocations: 15.98 kB / 1.005 GB, free: 8.391 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.696e-05/0.006116, allocations: 0 / 1.005 GB, free: 8.391 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.131e-05/0.006148, allocations: 7.984 kB / 1.005 GB, free: 8.383 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.006151, allocations: 0 / 1.005 GB, free: 8.383 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.97e-05/0.006181, allocations: 87.28 kB / 1.005 GB, free: 8.297 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.006181, allocations: 0 / 1.005 GB, free: 8.297 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001621/0.006343, allocations: 19.92 kB / 1.006 GB, free: 8.277 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0003306/0.006674, allocations: 0.7318 MB / 1.006 GB, free: 7.516 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001377/0.006812, allocations: 68.08 kB / 1.006 GB, free: 7.449 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 9.32e-07/0.006812, allocations: 0 / 1.006 GB, free: 7.449 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.796e-05/0.00687, allocations: 35.91 kB / 1.006 GB, free: 7.414 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001751/0.007046, allocations: 8 kB / 1.006 GB, free: 7.406 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.008081, allocations: 1.411 MB / 1.008 GB, free: 5.891 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.865e-05/0.008119, allocations: 71.34 kB / 1.008 GB, free: 5.801 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.063e-05/0.00814, allocations: 0 / 1.008 GB, free: 5.801 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.086e-05/0.008171, allocations: 20.48 kB / 1.008 GB, free: 5.781 MB / 0.9636 GB Notification: Performance of SimCode: time 5.71e-07/0.008171, allocations: 4 kB / 1.008 GB, free: 5.777 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0722/0.08037, allocations: 2.475 MB / 1.01 GB, free: 3.445 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.012/7.093, allocations: 11.09 kB / 1.01 GB, free: 3.441 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_fmpy.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_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_UnitDelay.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.721767087467015]