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.0009727/0.0009727, 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.001227/0.001227, allocations: 221.7 kB / 22.26 MB, free: 3.688 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.007/1.007, allocations: 230.6 MB / 256 MB, free: 9.801 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.7979/0.7979, allocations: 203.8 MB / 0.5042 GB, free: 10.71 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.0009385/0.0009385, allocations: 66.2 kB / 0.7182 GB, free: 4.375 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5047/0.5056, allocations: 102 MB / 0.8178 GB, free: 1.258 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001325/0.5069, allocations: 0.6722 MB / 0.8185 GB, free: 0.832 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008723/0.5078, allocations: 1.105 MB / 0.8196 GB, free: 24 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.601e-05/0.5078, allocations: 0 / 0.8196 GB, free: 24 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.63e-05/0.5079, allocations: 4.594 kB / 0.8196 GB, free: 20 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.135e-05/0.5079, allocations: 6.141 kB / 0.8196 GB, free: 16 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002624/0.5082, allocations: 46.61 kB / 0.8196 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.019e-05/0.5083, allocations: 49.08 kB / 0.8197 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.725e-05/0.5084, allocations: 17.08 kB / 0.8197 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.35e-05/0.5084, allocations: 18.78 kB / 0.8197 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.843e-05/0.5085, allocations: 23.53 kB / 0.8197 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.35e-05/0.5085, allocations: 4.219 kB / 0.8197 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.455e-05/0.5086, allocations: 25.19 kB / 0.8198 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.947e-05/0.5086, allocations: 11.27 kB / 0.8198 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.339e-05/0.5086, allocations: 22.47 kB / 0.8198 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.5087, allocations: 59.53 kB / 0.8199 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.5087, allocations: 3.5 kB / 0.8199 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.623e-06/0.5088, allocations: 0 / 0.8199 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.5088, 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.0004113/0.5092, allocations: 291.8 kB / 0.8201 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.5092, allocations: 9.375 kB / 0.8201 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.163e-05/0.5092, allocations: 41.84 kB / 0.8202 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.462e-05/0.5093, allocations: 4.234 kB / 0.8202 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.023e-05/0.5094, allocations: 115.8 kB / 0.8203 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.5094, allocations: 2.719 kB / 0.8203 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.264e-05/0.5094, allocations: 3.219 kB / 0.8203 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.5095, allocations: 67.53 kB / 0.8204 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.5096, allocations: 4.594 kB / 0.8204 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.5096, allocations: 3.938 kB / 0.8204 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.5096, allocations: 0 / 0.8204 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.926e-05/0.5097, allocations: 41.36 kB / 0.8204 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003704/0.51, allocations: 266.2 kB / 0.8207 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/0.5101, allocations: 54.84 kB / 0.8207 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.807e-05/0.5102, allocations: 27.73 kB / 0.8208 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.5102, allocations: 0.6562 kB / 0.8208 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001467/0.5104, allocations: 74.31 kB / 0.8208 GB, free: 14.99 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.413e-06/0.5104, allocations: 5.312 kB / 0.8208 GB, free: 14.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0002598/0.5106, allocations: 117.3 kB / 0.8209 GB, free: 14.94 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.5107, allocations: 60.09 kB / 0.821 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.517e-05/0.5107, allocations: 106.5 kB / 0.8211 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.5107, allocations: 29.86 kB / 0.8211 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.694e-05/0.5108, allocations: 89.27 kB / 0.8212 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.629e-05/0.5108, allocations: 11.78 kB / 0.8212 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.5108, allocations: 31.06 kB / 0.8213 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.381e-05/0.5109, allocations: 317.2 kB / 0.8216 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.204e-05/0.511, allocations: 29.56 kB / 0.8216 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.911e-05/0.511, allocations: 57.83 kB / 0.8216 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.5111, allocations: 90.42 kB / 0.8217 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5111, allocations: 0 / 0.8217 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001542/0.5113, allocations: 105.8 kB / 0.8218 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.5113, allocations: 8.219 kB / 0.8218 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.5113, allocations: 256 / 0.8218 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.5113, allocations: 5.562 kB / 0.8218 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.953e-05/0.5114, allocations: 19.56 kB / 0.8219 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.5114, allocations: 6.531 kB / 0.8219 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.855e-05/0.5115, allocations: 19.64 kB / 0.8219 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.5115, allocations: 7.344 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.316e-05/0.5115, allocations: 119 kB / 0.822 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-06/0.5116, allocations: 4.094 kB / 0.822 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001706/0.5117, allocations: 108.5 kB / 0.8221 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.5117, allocations: 0 / 0.8221 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.5117, allocations: 0 / 0.8221 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.5117, allocations: 0.7031 kB / 0.8221 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002858/0.512, allocations: 331 kB / 0.8224 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.512, allocations: 3.938 kB / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.114e-05/0.512, allocations: 8.094 kB / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.5121, allocations: 0.7969 kB / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.5121, allocations: 2.719 kB / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.5121, allocations: 0.7969 kB / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.5121, allocations: 0 / 0.8224 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000398/0.5125, allocations: 193.7 kB / 0.8226 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.285e-05/0.5125, allocations: 9.562 kB / 0.8226 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.5125, allocations: 0.6562 kB / 0.8226 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.956e-05/0.5125, allocations: 7.906 kB / 0.8226 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.896e-05/0.5126, allocations: 13.33 kB / 0.8227 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.5126, allocations: 3.156 kB / 0.8227 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.058e-05/0.5126, allocations: 86.34 kB / 0.8227 GB, free: 13.37 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5126, allocations: 0 / 0.8227 GB, free: 13.37 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001634/0.5128, allocations: 18.38 kB / 0.8228 GB, free: 13.36 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.0003682/0.5131, allocations: 0.7251 MB / 0.8235 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001667/0.5133, allocations: 64.47 kB / 0.8235 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.5133, allocations: 0 / 0.8235 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.89e-05/0.5134, allocations: 32.56 kB / 0.8236 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.5136, allocations: 8.328 kB / 0.8236 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.5147, allocations: 1.419 MB / 0.825 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.5149, allocations: 0.6885 MB / 0.8256 GB, free: 10.65 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.255e-05/0.515, allocations: 3.484 kB / 0.8256 GB, free: 10.65 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.029e-05/0.515, allocations: 16.88 kB / 0.8256 GB, free: 10.64 MB / 0.6198 GB Notification: Performance of SimCode: time 4.71e-07/0.515, allocations: 0 / 0.8256 GB, free: 10.64 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01722/0.5322, allocations: 1.905 MB / 0.8275 GB, free: 10.19 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.781/7.313, allocations: 3.5 kB / 0.8275 GB, free: 10.19 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.296623812057078] Failed to read output from testmodel.py, exit status != 0: 7.390319512924179 7.406622812 6.895328463 Calling exit ...