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.0006899/0.0006899, allocations: 101.5 kB / 18.95 MB, free: 1.18 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.0007604/0.0007604, allocations: 214.5 kB / 22.25 MB, free: 3.719 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 0.9476/0.9476, allocations: 230.6 MB / 256 MB, free: 9.602 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.811/0.811, allocations: 203.5 MB / 0.5039 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 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.00103/0.00103, allocations: 69.5 kB / 0.7178 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4938/0.4948, allocations: 102 MB / 0.8174 GB, free: 1.242 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001565/0.4964, allocations: 0.6483 MB / 0.818 GB, free: 0.8438 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.4975, allocations: 1.087 MB / 0.8191 GB, free: 56 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.482e-05/0.4975, allocations: 5.969 kB / 0.8191 GB, free: 52 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.22e-05/0.4975, allocations: 0 / 0.8191 GB, free: 52 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.121e-05/0.4976, allocations: 12.7 kB / 0.8191 GB, free: 40 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003106/0.4979, allocations: 40.31 kB / 0.8191 GB, free: 20 kB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.498, allocations: 56.75 kB / 0.8192 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.4981, allocations: 9.891 kB / 0.8192 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.252e-05/0.4982, allocations: 17.78 kB / 0.8192 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.93e-05/0.4983, allocations: 24.16 kB / 0.8192 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.4983, allocations: 3.781 kB / 0.8192 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.158e-05/0.4983, allocations: 18.31 kB / 0.8192 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.319e-05/0.4984, allocations: 16.8 kB / 0.8193 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.356e-05/0.4984, allocations: 15.3 kB / 0.8193 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000139/0.4985, allocations: 65.03 kB / 0.8193 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4985, allocations: 0 / 0.8193 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4985, allocations: 0 / 0.8193 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.4985, allocations: 4 kB / 0.8193 GB, free: 15.91 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.0004376/0.499, allocations: 290.8 kB / 0.8196 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.499, allocations: 7.781 kB / 0.8196 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.472e-05/0.4991, allocations: 37.45 kB / 0.8197 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.937e-05/0.4991, allocations: 4.922 kB / 0.8197 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.376e-05/0.4992, allocations: 111.9 kB / 0.8198 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.4992, allocations: 5.188 kB / 0.8198 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.4993, allocations: 4.547 kB / 0.8198 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001461/0.4994, allocations: 61.88 kB / 0.8198 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.4994, allocations: 7.938 kB / 0.8198 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.4994, allocations: 2.281 kB / 0.8198 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.4994, allocations: 0 / 0.8198 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001076/0.4995, allocations: 44.19 kB / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003963/0.4999, allocations: 254 kB / 0.8201 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001152/0.5, allocations: 49.23 kB / 0.8202 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.758e-05/0.5001, allocations: 34.81 kB / 0.8202 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.5001, allocations: 0.6094 kB / 0.8202 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001724/0.5003, allocations: 74.5 kB / 0.8203 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.753e-06/0.5003, allocations: 0 / 0.8203 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0002855/0.5006, allocations: 118.9 kB / 0.8204 GB, free: 14.99 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.5006, allocations: 56.14 kB / 0.8205 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.327e-05/0.5007, allocations: 111.6 kB / 0.8206 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.5007, allocations: 33.64 kB / 0.8206 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.714e-05/0.5007, allocations: 93.17 kB / 0.8207 GB, free: 14.69 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/0.5008, allocations: 13.31 kB / 0.8207 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.748e-05/0.5008, allocations: 24.16 kB / 0.8207 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.765e-05/0.5009, allocations: 321.3 kB / 0.821 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.434e-05/0.501, allocations: 26.69 kB / 0.821 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.313e-05/0.501, allocations: 59.55 kB / 0.8211 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.5012, allocations: 91.48 kB / 0.8212 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.5012, allocations: 0 / 0.8212 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001677/0.5013, allocations: 109.1 kB / 0.8213 GB, free: 14.17 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.5013, allocations: 9.594 kB / 0.8213 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.5013, allocations: 3.5 kB / 0.8213 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.5014, allocations: 0.6094 kB / 0.8213 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.078e-05/0.5014, allocations: 15.89 kB / 0.8213 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.5014, allocations: 4.578 kB / 0.8213 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.79e-05/0.5015, allocations: 16 kB / 0.8213 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.5015, allocations: 3.875 kB / 0.8213 GB, free: 14.15 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 8.197e-05/0.5016, allocations: 124 kB / 0.8215 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.836e-06/0.5016, allocations: 2.359 kB / 0.8215 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.5018, allocations: 107.5 kB / 0.8216 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.5018, allocations: 1.109 kB / 0.8216 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.5018, allocations: 0.5 kB / 0.8216 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.5018, allocations: 0.6094 kB / 0.8216 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000306/0.5021, allocations: 322.2 kB / 0.8219 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.5021, allocations: 2.062 kB / 0.8219 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-05/0.5021, allocations: 8 kB / 0.8219 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.5021, allocations: 4.75 kB / 0.8219 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.5022, allocations: 3.938 kB / 0.8219 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.5022, allocations: 0 / 0.8219 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.5022, allocations: 0.5625 kB / 0.8219 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.5023, allocations: 199 kB / 0.8221 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.336e-06/0.5023, allocations: 8.203 kB / 0.8221 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.5023, allocations: 0.6562 kB / 0.8221 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.067e-05/0.5024, allocations: 6.766 kB / 0.8221 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.017e-05/0.5024, allocations: 17.75 kB / 0.8221 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.5024, allocations: 4.594 kB / 0.8221 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.198e-05/0.5025, allocations: 84 kB / 0.8222 GB, free: 13.42 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5025, allocations: 0 / 0.8222 GB, free: 13.42 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001689/0.5026, allocations: 22.55 kB / 0.8222 GB, free: 13.41 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.0004412/0.5031, allocations: 0.7155 MB / 0.8229 GB, free: 12.74 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001805/0.5033, allocations: 71.53 kB / 0.823 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.5033, allocations: 0 / 0.823 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.482e-05/0.5033, allocations: 29.78 kB / 0.823 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.5036, allocations: 16.45 kB / 0.823 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.5047, allocations: 1.419 MB / 0.8244 GB, free: 11.41 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.642e-05/0.5048, allocations: 69.48 kB / 0.8245 GB, free: 11.33 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.127e-05/0.5048, allocations: 6.109 kB / 0.8245 GB, free: 11.33 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.412e-05/0.5048, allocations: 17.88 kB / 0.8245 GB, free: 11.32 MB / 0.6198 GB Notification: Performance of SimCode: time 5.81e-07/0.5048, allocations: 1.312 kB / 0.8245 GB, free: 11.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01727/0.5221, allocations: 2.333 MB / 0.8268 GB, free: 10.44 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.609/7.131, allocations: 9.219 kB / 0.8268 GB, free: 10.43 MB / 0.6198 GB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file IDEAS_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_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.19869306590408] Failed to read output from testmodel.py, exit status != 0: 7.211025403346866 7.2250711899999995 6.723494059 Calling exit ...