Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0009412/0.0009412, allocations: 101.5 kB / 18.95 MB, free: 1.184 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.001042/0.001042, allocations: 209.2 kB / 22.24 MB, free: 3.59 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.578 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.8196/0.8196, allocations: 203.5 MB / 0.5039 GB, free: 10.67 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="IDEAS_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.0009538/0.0009538, allocations: 74.59 kB / 0.7178 GB, free: 4.418 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6184/0.6193, allocations: 102 MB / 0.8174 GB, free: 1.074 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002096/0.6214, allocations: 0.6483 MB / 0.818 GB, free: 0.6758 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.6226, allocations: 1.089 MB / 0.8191 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.451e-05/0.6227, allocations: 0 / 0.8191 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.261e-05/0.6227, allocations: 4.547 kB / 0.8191 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.398e-05/0.6228, allocations: 9.781 kB / 0.8191 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.6231, allocations: 44.66 kB / 0.8191 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.6233, allocations: 49 kB / 0.8192 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.6234, allocations: 9.062 kB / 0.8192 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.844e-05/0.6235, allocations: 25.06 kB / 0.8192 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.978e-05/0.6236, allocations: 21.22 kB / 0.8192 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.5e-05/0.6236, allocations: 3.219 kB / 0.8192 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.758e-05/0.6237, allocations: 23.38 kB / 0.8192 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.474e-05/0.6237, allocations: 9.094 kB / 0.8192 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.062e-05/0.6237, allocations: 22.55 kB / 0.8193 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.6239, allocations: 60.91 kB / 0.8193 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.6239, allocations: 0 / 0.8193 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.014e-06/0.6239, allocations: 0 / 0.8193 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.6239, allocations: 4.922 kB / 0.8193 GB, free: 15.75 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.0005443/0.6245, allocations: 292.8 kB / 0.8196 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.6245, allocations: 10.47 kB / 0.8196 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.586e-05/0.6246, allocations: 31.69 kB / 0.8197 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.6247, allocations: 5.391 kB / 0.8197 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.6248, allocations: 111 kB / 0.8198 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.6248, allocations: 6.375 kB / 0.8198 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.6248, allocations: 3.781 kB / 0.8198 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.625, allocations: 61.94 kB / 0.8198 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.625, allocations: 3.938 kB / 0.8198 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.625, allocations: 7.938 kB / 0.8198 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.625, allocations: 2 kB / 0.8198 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.6252, allocations: 45.95 kB / 0.8199 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009147/0.6261, allocations: 251.5 kB / 0.8201 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.6262, allocations: 55.23 kB / 0.8202 GB, free: 14.94 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.224e-05/0.6263, allocations: 25.97 kB / 0.8202 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.6263, allocations: 7.125 kB / 0.8202 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001767/0.6265, allocations: 74.61 kB / 0.8203 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.864e-06/0.6265, allocations: 0 / 0.8203 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0003033/0.6268, allocations: 119.1 kB / 0.8204 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.6268, allocations: 52.02 kB / 0.8204 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.88e-05/0.6269, allocations: 114.4 kB / 0.8206 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.6269, allocations: 28.3 kB / 0.8206 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.65e-05/0.627, allocations: 98.25 kB / 0.8207 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.627, allocations: 15.72 kB / 0.8207 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.627, allocations: 23.45 kB / 0.8207 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.508e-05/0.6271, allocations: 321.9 kB / 0.821 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.541e-05/0.6272, allocations: 30.02 kB / 0.8211 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.378e-05/0.6273, allocations: 56.33 kB / 0.8211 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.6274, allocations: 92.55 kB / 0.8212 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.6274, allocations: 2.406 kB / 0.8212 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001712/0.6276, allocations: 110.6 kB / 0.8213 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.6276, allocations: 4 kB / 0.8213 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.6276, allocations: 8.25 kB / 0.8213 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.6276, allocations: 0 / 0.8213 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.777e-05/0.6277, allocations: 16.56 kB / 0.8213 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.6277, allocations: 0.7031 kB / 0.8213 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.895e-05/0.6277, allocations: 15.33 kB / 0.8213 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.6278, allocations: 6.797 kB / 0.8214 GB, free: 13.98 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.45e-05/0.6278, allocations: 120.2 kB / 0.8215 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-06/0.6278, allocations: 2.156 kB / 0.8215 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001975/0.628, allocations: 107 kB / 0.8216 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.628, allocations: 0 / 0.8216 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.628, allocations: 0 / 0.8216 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.628, allocations: 0.5156 kB / 0.8216 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.6283, allocations: 321.9 kB / 0.8219 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.6284, allocations: 3.938 kB / 0.8219 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.367e-05/0.6284, allocations: 9.953 kB / 0.8219 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.6284, allocations: 3.469 kB / 0.8219 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.6284, allocations: 4.938 kB / 0.8219 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.6284, allocations: 0 / 0.8219 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.6284, allocations: 0 / 0.8219 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000176/0.6286, allocations: 194.5 kB / 0.8221 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.087e-06/0.6286, allocations: 7.375 kB / 0.8221 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.6286, allocations: 2.078 kB / 0.8221 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.156e-05/0.6286, allocations: 10.14 kB / 0.8221 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.974e-05/0.6287, allocations: 12.41 kB / 0.8221 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.6287, allocations: 2.906 kB / 0.8221 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.154e-05/0.6287, allocations: 90.5 kB / 0.8222 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.1e-08/0.6287, allocations: 3.938 kB / 0.8222 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001667/0.6289, allocations: 15.05 kB / 0.8222 GB, free: 13.24 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.0004778/0.6294, allocations: 0.7204 MB / 0.8229 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001973/0.6296, allocations: 67.11 kB / 0.823 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6296, allocations: 4.062 kB / 0.823 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.835e-05/0.6297, allocations: 28.64 kB / 0.823 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.6299, allocations: 12.03 kB / 0.823 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.6312, allocations: 1.414 MB / 0.8244 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.086e-05/0.6313, allocations: 68.81 kB / 0.8245 GB, free: 11.17 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.55e-05/0.6313, allocations: 3.891 kB / 0.8245 GB, free: 11.17 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.212e-05/0.6314, allocations: 20.38 kB / 0.8245 GB, free: 11.15 MB / 0.6198 GB Notification: Performance of SimCode: time 2.9e-07/0.6314, allocations: 0 / 0.8245 GB, free: 11.15 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01741/0.6488, allocations: 2.345 MB / 0.8268 GB, free: 10.27 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.106/7.755, allocations: 4.375 kB / 0.8268 GB, free: 10.27 MB / 0.6198 GB " [Timeout remaining time 652] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.872572077903897] Failed to read output from testmodel.py, exit status != 0: 7.831733924336731 7.847306164 7.221152934 Calling exit ...