Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.00178/0.00178, allocations: 104.7 kB / 17.07 MB, free: 5.965 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.002243/0.002243, allocations: 194.7 kB / 20.03 MB, free: 3.035 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.494/1.494, allocations: 222.9 MB / 245.7 MB, free: 4.199 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.074/1.074, allocations: 147.6 MB / 445.6 MB, free: 8.32 MB / 350.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 63.89 kB / 0.6109 GB, free: 8 kB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3754, allocations: 83.16 MB / 0.6921 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.00174/0.3772, allocations: 0.6581 MB / 0.6927 GB, free: 13 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001302/0.3785, allocations: 1.043 MB / 0.6938 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.253e-05/0.3786, allocations: 2.125 kB / 0.6938 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 2.595e-05/0.3786, allocations: 3.938 kB / 0.6938 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 6.391e-05/0.3787, allocations: 7.922 kB / 0.6938 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002436/0.3789, allocations: 41.84 kB / 0.6938 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 8.203e-05/0.379, allocations: 42.95 kB / 0.6938 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.3791, allocations: 20.03 kB / 0.6939 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 7.362e-05/0.3792, allocations: 19.52 kB / 0.6939 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 5.199e-05/0.3793, allocations: 22.42 kB / 0.6939 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.3793, allocations: 3.344 kB / 0.6939 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 5.992e-05/0.3794, allocations: 19.36 kB / 0.6939 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.771e-05/0.3794, allocations: 9.25 kB / 0.6939 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 4.569e-05/0.3794, allocations: 26.16 kB / 0.694 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.3796, allocations: 48.45 kB / 0.694 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3796, allocations: 0 / 0.694 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3796, allocations: 1.25 kB / 0.694 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.3796, allocations: 0 / 0.694 GB, free: 11.98 MB / 0.5137 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.0005028/0.3801, allocations: 366.9 kB / 0.6944 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.3801, allocations: 9.594 kB / 0.6944 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.982e-05/0.3802, allocations: 35.59 kB / 0.6944 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.815e-05/0.3802, allocations: 7.453 kB / 0.6944 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.3803, allocations: 175.1 kB / 0.6946 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.945e-06/0.3804, allocations: 1.781 kB / 0.6946 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.3804, allocations: 8 kB / 0.6946 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.3806, allocations: 63.02 kB / 0.6946 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.3806, allocations: 3.938 kB / 0.6946 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.3806, allocations: 5.453 kB / 0.6947 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3806, allocations: 0 / 0.6947 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001768/0.3808, allocations: 38.66 kB / 0.6947 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004535/0.3813, allocations: 290.5 kB / 0.695 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.3814, allocations: 57.83 kB / 0.695 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.416e-05/0.3815, allocations: 25.69 kB / 0.695 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.3816, allocations: 6.219 kB / 0.6951 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002053/0.3818, allocations: 71.47 kB / 0.6951 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.3818, allocations: 4 kB / 0.6951 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of matching and sorting (n=6): time 0.0003908/0.3822, allocations: 121.6 kB / 0.6952 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.3822, allocations: 53.09 kB / 0.6953 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.213e-05/0.3823, allocations: 112.6 kB / 0.6954 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.3823, allocations: 25.7 kB / 0.6954 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.732e-05/0.3824, allocations: 93.81 kB / 0.6955 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.3824, allocations: 14.97 kB / 0.6955 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-05/0.3825, allocations: 27.2 kB / 0.6956 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3826, allocations: 320.2 kB / 0.6959 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.3827, allocations: 25.72 kB / 0.6959 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.3829, allocations: 62.08 kB / 0.6959 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.3831, allocations: 85.2 kB / 0.696 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.3831, allocations: 0 / 0.696 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002978/0.3834, allocations: 120.2 kB / 0.6961 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.3834, allocations: 5.5 kB / 0.6961 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.3834, allocations: 1.688 kB / 0.6961 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.3834, allocations: 5.312 kB / 0.6962 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.3836, allocations: 16.36 kB / 0.6962 GB, free: 9.867 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.3836, allocations: 1.375 kB / 0.6962 GB, free: 9.867 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.007e-05/0.3836, allocations: 9.641 kB / 0.6962 GB, free: 9.863 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.3837, allocations: 10.73 kB / 0.6962 GB, free: 9.855 MB / 0.5137 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 8.925e-05/0.3838, allocations: 117.9 kB / 0.6963 GB, free: 9.734 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.359e-05/0.3838, allocations: 6.703 kB / 0.6963 GB, free: 9.73 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002853/0.3841, allocations: 107 kB / 0.6964 GB, free: 9.648 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.3841, allocations: 1.375 kB / 0.6964 GB, free: 9.648 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3841, allocations: 192 / 0.6964 GB, free: 9.648 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3841, allocations: 5.359 kB / 0.6964 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004522/0.3846, allocations: 354.5 kB / 0.6968 GB, free: 9.289 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.3846, allocations: 1.75 kB / 0.6968 GB, free: 9.289 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.113e-05/0.3846, allocations: 13.47 kB / 0.6968 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3846, allocations: 1.375 kB / 0.6968 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.3847, allocations: 4 kB / 0.6968 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.3847, allocations: 1.375 kB / 0.6968 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3847, allocations: 0 / 0.6968 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.385, allocations: 199.3 kB / 0.697 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.353e-05/0.385, allocations: 79.86 kB / 0.697 GB, free: 9.012 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.3851, allocations: 0 / 0.697 GB, free: 9.012 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.761e-05/0.3851, allocations: 16.05 kB / 0.6971 GB, free: 9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.936e-05/0.3852, allocations: 10.67 kB / 0.6971 GB, free: 8.992 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.3852, allocations: 1.375 kB / 0.6971 GB, free: 8.992 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 5.558e-05/0.3853, allocations: 88.78 kB / 0.6972 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3853, allocations: 0 / 0.6972 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002371/0.3855, allocations: 11 kB / 0.6972 GB, free: 8.91 MB / 0.5137 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.0006655/0.3862, allocations: 0.7278 MB / 0.6979 GB, free: 8.215 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002741/0.3865, allocations: 65.86 kB / 0.6979 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.3865, allocations: 4 kB / 0.6979 GB, free: 8.184 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.3866, allocations: 30.77 kB / 0.698 GB, free: 8.172 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.3869, allocations: 17.48 kB / 0.698 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.3886, allocations: 1.42 MB / 0.6994 GB, free: 6.797 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.3889, allocations: 0.681 MB / 0.7 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.603e-05/0.3889, allocations: 7.609 kB / 0.7 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.282e-05/0.389, allocations: 13.81 kB / 0.7001 GB, free: 6.086 MB / 0.5137 GB Notification: Performance of SimCode: time 3.11e-07/0.389, allocations: 1.156 kB / 0.7001 GB, free: 6.086 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02174/0.4107, allocations: 1.77 MB / 0.7018 GB, free: 4.738 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.108/8.519, allocations: 11.16 kB / 0.7018 GB, free: 4.734 MB / 0.5137 GB " [Timeout remaining time 651] (rm -f IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.20223155990243] Failed to read output from testmodel.py, exit status != 0: 8.587271966971457 8.612484328 8.228485488 Calling exit ...