Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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.0008837/0.0008837, allocations: 109.9 kB / 18.93 MB, free: 1.27 MB / 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.001097/0.001097, allocations: 223.7 kB / 22.26 MB, free: 3.703 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 1.012/1.012, allocations: 230.6 MB / 256 MB, free: 9.809 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7875/0.7875, allocations: 203.8 MB / 0.5042 GB, free: 10.72 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009902/0.0009902, allocations: 67.52 kB / 0.7182 GB, free: 4.352 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.495/0.496, allocations: 102 MB / 0.8178 GB, free: 1.254 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001401/0.4974, allocations: 0.667 MB / 0.8185 GB, free: 0.832 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008974/0.4983, allocations: 1.117 MB / 0.8196 GB, free: 12 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.971e-05/0.4983, allocations: 0 / 0.8196 GB, free: 12 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.633e-05/0.4983, allocations: 0.6562 kB / 0.8196 GB, free: 12 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.229e-05/0.4984, allocations: 11.12 kB / 0.8196 GB, free: 4 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002819/0.4987, allocations: 42.59 kB / 0.8196 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.391e-05/0.4988, allocations: 49.11 kB / 0.8197 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.369e-05/0.4989, allocations: 8.797 kB / 0.8197 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.979e-05/0.4989, allocations: 15.59 kB / 0.8197 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.124e-05/0.499, allocations: 30.31 kB / 0.8197 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.499, allocations: 8.312 kB / 0.8197 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.172e-05/0.4991, allocations: 22.58 kB / 0.8198 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.707e-05/0.4991, allocations: 5.875 kB / 0.8198 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.57e-05/0.4991, allocations: 22.73 kB / 0.8198 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001366/0.4993, allocations: 69.5 kB / 0.8199 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.4993, allocations: 2.812 kB / 0.8199 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.222e-06/0.4993, allocations: 0 / 0.8199 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.663e-06/0.4993, allocations: 0 / 0.8199 GB, free: 15.88 MB / 0.6198 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.0004219/0.4997, allocations: 285.8 kB / 0.8201 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.4997, allocations: 14.92 kB / 0.8201 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.954e-05/0.4998, allocations: 31.5 kB / 0.8202 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.033e-05/0.4998, allocations: 6.531 kB / 0.8202 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.766e-05/0.4999, allocations: 119.1 kB / 0.8203 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.4999, allocations: 0.9844 kB / 0.8203 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.4999, allocations: 5.406 kB / 0.8203 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.5001, allocations: 64.3 kB / 0.8204 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.5001, allocations: 4.547 kB / 0.8204 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.5001, allocations: 1.438 kB / 0.8204 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.5001, allocations: 4 kB / 0.8204 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.863e-05/0.5002, allocations: 50.83 kB / 0.8204 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003673/0.5006, allocations: 259.1 kB / 0.8207 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.5007, allocations: 48.67 kB / 0.8207 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.087e-05/0.5007, allocations: 30.73 kB / 0.8207 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.5007, allocations: 1.859 kB / 0.8207 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001727/0.5009, allocations: 84.2 kB / 0.8208 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.5009, allocations: 0 / 0.8208 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0002611/0.5012, allocations: 115.4 kB / 0.8209 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.5012, allocations: 54.56 kB / 0.821 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.114e-05/0.5013, allocations: 113.4 kB / 0.8211 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.5013, allocations: 28.09 kB / 0.8211 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.185e-05/0.5013, allocations: 90.72 kB / 0.8212 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.5014, allocations: 11.92 kB / 0.8212 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.641e-05/0.5014, allocations: 31.66 kB / 0.8213 GB, free: 14.6 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.265e-05/0.5015, allocations: 316.7 kB / 0.8216 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.983e-05/0.5015, allocations: 30.31 kB / 0.8216 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.11e-05/0.5016, allocations: 56.12 kB / 0.8216 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001187/0.5017, allocations: 94.19 kB / 0.8217 GB, free: 14.17 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.5017, allocations: 0 / 0.8217 GB, free: 14.17 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001649/0.5019, allocations: 108.4 kB / 0.8218 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.5019, allocations: 11.91 kB / 0.8218 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.5019, allocations: 1.781 kB / 0.8218 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.5019, allocations: 2.344 kB / 0.8218 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.749e-05/0.502, allocations: 15.14 kB / 0.8219 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.502, allocations: 1.672 kB / 0.8219 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.806e-05/0.5021, allocations: 20.22 kB / 0.8219 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.5021, allocations: 2.5 kB / 0.8219 GB, free: 14.1 MB / 0.6198 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 7.293e-05/0.5021, allocations: 124 kB / 0.822 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-06/0.5021, allocations: 5.766 kB / 0.822 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001808/0.5023, allocations: 102.1 kB / 0.8221 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.5023, allocations: 0 / 0.8221 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.5023, allocations: 0.6562 kB / 0.8221 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.5023, allocations: 0 / 0.8221 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002956/0.5026, allocations: 330.1 kB / 0.8224 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.5026, allocations: 4 kB / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.074e-05/0.5027, allocations: 9.156 kB / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.5027, allocations: 6.375 kB / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.5027, allocations: 0.75 kB / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.5027, allocations: 0 / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.5027, allocations: 0.7031 kB / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001614/0.5028, allocations: 198 kB / 0.8226 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.006e-06/0.5028, allocations: 7.469 kB / 0.8226 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.5029, allocations: 6.812 kB / 0.8226 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.922e-05/0.5029, allocations: 9.297 kB / 0.8227 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.67e-05/0.5029, allocations: 9.422 kB / 0.8227 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.5029, allocations: 4.844 kB / 0.8227 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.033e-05/0.503, allocations: 84.08 kB / 0.8227 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.503, allocations: 0 / 0.8227 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001668/0.5031, allocations: 18.84 kB / 0.8228 GB, free: 13.35 MB / 0.6198 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.0003932/0.5035, allocations: 0.7215 MB / 0.8235 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001637/0.5037, allocations: 70.38 kB / 0.8235 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.5037, allocations: 1.5 kB / 0.8235 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.114e-05/0.5038, allocations: 29.36 kB / 0.8236 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.504, allocations: 7.875 kB / 0.8236 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.5051, allocations: 1.409 MB / 0.8249 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.5053, allocations: 0.6865 MB / 0.8256 GB, free: 10.65 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.129e-05/0.5053, allocations: 4.641 kB / 0.8256 GB, free: 10.65 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.694e-05/0.5054, allocations: 16.55 kB / 0.8256 GB, free: 10.64 MB / 0.6198 GB Notification: Performance of SimCode: time 6.81e-07/0.5054, allocations: 0 / 0.8256 GB, free: 10.64 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01752/0.5229, allocations: 1.918 MB / 0.8275 GB, free: 10.18 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.728/7.251, allocations: 5.969 kB / 0.8275 GB, free: 10.18 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.318965587997809] Failed to read output from testmodel.py, exit status != 0: 7.3289475459605455 7.347290279 6.845540613 Calling exit ...