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.001288/0.001288, allocations: 110.7 kB / 17.07 MB, free: 5.984 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.001324/0.001324, allocations: 190.8 kB / 20.03 MB, free: 3.059 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.451/1.451, allocations: 222.9 MB / 245.7 MB, free: 4.215 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.065/1.065, allocations: 147.6 MB / 445.6 MB, free: 8.223 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.2736/0.2736, allocations: 65.47 kB / 0.6109 GB, free: 37.78 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.4157, allocations: 83.15 MB / 0.6921 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002062/0.4178, allocations: 0.656 MB / 0.6927 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.4193, allocations: 1.055 MB / 0.6938 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.287e-05/0.4194, allocations: 0 / 0.6938 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 3.397e-05/0.4195, allocations: 3.938 kB / 0.6938 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 6.138e-05/0.4195, allocations: 5.719 kB / 0.6938 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.4198, allocations: 40.52 kB / 0.6938 GB, free: 12 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.42, allocations: 51.84 kB / 0.6939 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 9.094e-05/0.4201, allocations: 4.438 kB / 0.6939 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 7.333e-05/0.4201, allocations: 23.08 kB / 0.6939 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 5.463e-05/0.4202, allocations: 26.47 kB / 0.6939 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.501e-05/0.4202, allocations: 6.719 kB / 0.6939 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.719e-05/0.4203, allocations: 19.52 kB / 0.6939 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 2.339e-05/0.4203, allocations: 13.11 kB / 0.6939 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 4.167e-05/0.4204, allocations: 17.78 kB / 0.694 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001466/0.4205, allocations: 53.12 kB / 0.694 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.4205, allocations: 4 kB / 0.694 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.102e-06/0.4205, allocations: 0 / 0.694 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.12e-05/0.4206, allocations: 1.344 kB / 0.694 GB, free: 11.86 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.0005863/0.4212, allocations: 367.5 kB / 0.6944 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.4212, allocations: 8.188 kB / 0.6944 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.527e-05/0.4212, allocations: 35.94 kB / 0.6944 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.735e-05/0.4213, allocations: 11.53 kB / 0.6944 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.4214, allocations: 167.4 kB / 0.6946 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.4215, allocations: 1.75 kB / 0.6946 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.139e-05/0.4215, allocations: 3.375 kB / 0.6946 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002017/0.4217, allocations: 64.19 kB / 0.6946 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.4217, allocations: 3.938 kB / 0.6947 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.4217, allocations: 4 kB / 0.6947 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.4217, allocations: 1.781 kB / 0.6947 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.4219, allocations: 43.28 kB / 0.6947 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005075/0.4224, allocations: 289.5 kB / 0.695 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.4226, allocations: 55.8 kB / 0.695 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.4227, allocations: 31.12 kB / 0.6951 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.4228, allocations: 2.219 kB / 0.6951 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.423, allocations: 75.34 kB / 0.6951 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=6): time 1.653e-06/0.423, allocations: 0 / 0.6951 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=6): time 0.0004198/0.4234, allocations: 117.3 kB / 0.6952 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/0.4235, allocations: 54.16 kB / 0.6953 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.054e-05/0.4236, allocations: 110 kB / 0.6954 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.4236, allocations: 31.08 kB / 0.6954 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.125e-05/0.4237, allocations: 85.45 kB / 0.6955 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.4237, allocations: 14.66 kB / 0.6955 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.654e-05/0.4238, allocations: 24.58 kB / 0.6955 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.4239, allocations: 324.2 kB / 0.6959 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.424, allocations: 29.91 kB / 0.6959 GB, free: 9.961 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.4241, allocations: 66.08 kB / 0.6959 GB, free: 9.898 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.4244, allocations: 89.38 kB / 0.696 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.4244, allocations: 0 / 0.696 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002838/0.4247, allocations: 120.3 kB / 0.6961 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.4247, allocations: 5.5 kB / 0.6962 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.4247, allocations: 1.375 kB / 0.6962 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.4247, allocations: 1.375 kB / 0.6962 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.4248, allocations: 14.98 kB / 0.6962 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.4249, allocations: 6.734 kB / 0.6962 GB, free: 9.742 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.11e-05/0.4249, allocations: 8.109 kB / 0.6962 GB, free: 9.738 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.4249, allocations: 4.125 kB / 0.6962 GB, free: 9.738 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 0.0001003/0.4251, allocations: 125.9 kB / 0.6963 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.4251, allocations: 10.69 kB / 0.6963 GB, free: 9.602 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002836/0.4254, allocations: 103.1 kB / 0.6964 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.4254, allocations: 1.375 kB / 0.6964 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4254, allocations: 0 / 0.6964 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.4254, allocations: 0 / 0.6964 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004723/0.4259, allocations: 360.5 kB / 0.6968 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.4259, allocations: 0 / 0.6968 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-05/0.4259, allocations: 5.656 kB / 0.6968 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.426, allocations: 0.9375 kB / 0.6968 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.426, allocations: 0.9688 kB / 0.6968 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/0.426, allocations: 4.953 kB / 0.6968 GB, free: 9.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.426, allocations: 0 / 0.6968 GB, free: 9.16 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003236/0.4263, allocations: 201.1 kB / 0.697 GB, free: 8.988 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.397e-05/0.4264, allocations: 78.7 kB / 0.697 GB, free: 8.895 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.4264, allocations: 7.984 kB / 0.697 GB, free: 8.887 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-05/0.4265, allocations: 7.531 kB / 0.6971 GB, free: 8.883 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.607e-05/0.4265, allocations: 10.7 kB / 0.6971 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-06/0.4266, allocations: 2.469 kB / 0.6971 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 5.01e-05/0.4266, allocations: 83.94 kB / 0.6971 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4266, allocations: 0.6875 kB / 0.6972 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002455/0.4269, allocations: 13.84 kB / 0.6972 GB, free: 8.793 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.0006481/0.4275, allocations: 0.728 MB / 0.6979 GB, free: 8.098 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000282/0.4278, allocations: 70.2 kB / 0.6979 GB, free: 8.066 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.4278, allocations: 7.938 kB / 0.6979 GB, free: 8.059 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.4279, allocations: 31.12 kB / 0.698 GB, free: 8.047 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.4282, allocations: 15.78 kB / 0.698 GB, free: 8.035 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.4299, allocations: 1.408 MB / 0.6994 GB, free: 6.684 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.4302, allocations: 0.6887 MB / 0.7 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.369e-05/0.4302, allocations: 3.625 kB / 0.7 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/0.4303, allocations: 15.25 kB / 0.7001 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of SimCode: time 2.21e-07/0.4303, allocations: 0 / 0.7001 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02246/0.4527, allocations: 1.774 MB / 0.7018 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.161/8.614, allocations: 5.703 kB / 0.7018 GB, free: 4.621 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.027637309860438] Failed to read output from testmodel.py, exit status != 0: 8.68284012307413 8.698706184 8.275081937 Calling exit ...