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.0008692/0.0008692, allocations: 105.5 kB / 18.95 MB, free: 1.176 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.001116/0.001116, allocations: 217.2 kB / 22.25 MB, free: 3.57 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.9454/0.9454, 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 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.7518/0.7518, allocations: 203.8 MB / 0.5042 GB, free: 10.45 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.0009343/0.0009343, allocations: 66.03 kB / 0.7181 GB, free: 4.055 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4849/0.4859, allocations: 102 MB / 0.8178 GB, free: 1.039 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001456/0.4873, allocations: 0.6544 MB / 0.8184 GB, free: 0.6289 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008536/0.4882, allocations: 1.089 MB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.018e-05/0.4882, allocations: 0 / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.954e-05/0.4882, allocations: 5.047 kB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.224e-05/0.4883, allocations: 8.562 kB / 0.8195 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002659/0.4886, allocations: 44.41 kB / 0.8195 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.717e-05/0.4887, allocations: 49.3 kB / 0.8196 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.4888, allocations: 10.56 kB / 0.8196 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.963e-05/0.4888, allocations: 20.91 kB / 0.8196 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.07e-05/0.4889, allocations: 24.17 kB / 0.8196 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.247e-05/0.4889, allocations: 3.781 kB / 0.8196 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.249e-05/0.489, allocations: 22.7 kB / 0.8197 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.368e-05/0.489, allocations: 11.86 kB / 0.8197 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.659e-05/0.489, allocations: 19.78 kB / 0.8197 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.4892, allocations: 62.83 kB / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.4892, allocations: 0 / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.024e-06/0.4892, allocations: 0 / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.4892, allocations: 0 / 0.8197 GB, free: 15.71 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.0003954/0.4896, allocations: 291.8 kB / 0.82 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.4896, allocations: 10.28 kB / 0.82 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.017e-05/0.4896, allocations: 31.92 kB / 0.8201 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.706e-05/0.4897, allocations: 7 kB / 0.8201 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.197e-05/0.4898, allocations: 115.2 kB / 0.8202 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.4898, allocations: 4.375 kB / 0.8202 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.4898, allocations: 8.219 kB / 0.8202 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.4899, allocations: 63.02 kB / 0.8203 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.4899, allocations: 3.938 kB / 0.8203 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.4899, allocations: 4 kB / 0.8203 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.4899, allocations: 1.156 kB / 0.8203 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001046/0.49, allocations: 37.95 kB / 0.8203 GB, free: 15.19 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003688/0.4904, allocations: 262.5 kB / 0.8205 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.4905, allocations: 52.28 kB / 0.8206 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.222e-05/0.4906, allocations: 27.17 kB / 0.8206 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.4906, allocations: 5.438 kB / 0.8206 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001328/0.4907, allocations: 70.83 kB / 0.8207 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.4907, allocations: 1.938 kB / 0.8207 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0002625/0.491, allocations: 115.9 kB / 0.8208 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.491, allocations: 57.7 kB / 0.8209 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002972/0.4913, allocations: 108.1 kB / 0.821 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.4913, allocations: 29.64 kB / 0.821 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.687e-05/0.4914, allocations: 100 kB / 0.8211 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.4914, allocations: 19.61 kB / 0.8211 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.974e-05/0.4914, allocations: 23.55 kB / 0.8211 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.771e-05/0.4915, allocations: 320.8 kB / 0.8214 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.398e-05/0.4915, allocations: 27.61 kB / 0.8215 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.655e-05/0.4916, allocations: 52.5 kB / 0.8215 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001167/0.4917, allocations: 91.47 kB / 0.8216 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4917, allocations: 0 / 0.8216 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001425/0.4919, allocations: 106.8 kB / 0.8217 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.4919, allocations: 6.156 kB / 0.8217 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.4919, allocations: 5.562 kB / 0.8217 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.4919, allocations: 2.641 kB / 0.8217 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.555e-05/0.492, allocations: 22.81 kB / 0.8217 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.492, allocations: 1.938 kB / 0.8217 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.697e-05/0.492, allocations: 15.95 kB / 0.8218 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.492, allocations: 4.156 kB / 0.8218 GB, free: 13.94 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 5.9e-05/0.4921, allocations: 118.3 kB / 0.8219 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.023e-06/0.4921, allocations: 6.734 kB / 0.8219 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001654/0.4922, allocations: 109 kB / 0.822 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.4922, allocations: 0 / 0.822 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.4923, allocations: 1.719 kB / 0.822 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.4923, allocations: 0.7969 kB / 0.822 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.4925, allocations: 317.6 kB / 0.8223 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4925, allocations: 4.062 kB / 0.8223 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.064e-05/0.4925, allocations: 17.67 kB / 0.8223 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.4925, allocations: 0 / 0.8223 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.4925, allocations: 4 kB / 0.8223 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4926, allocations: 4.594 kB / 0.8223 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.4926, allocations: 0 / 0.8223 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.4927, allocations: 192.3 kB / 0.8225 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-06/0.4927, allocations: 6.344 kB / 0.8225 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.4927, allocations: 0.6094 kB / 0.8225 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.963e-05/0.4927, allocations: 6.766 kB / 0.8225 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.578e-05/0.4928, allocations: 15.19 kB / 0.8225 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-06/0.4928, allocations: 4 kB / 0.8225 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.693e-05/0.4928, allocations: 83.11 kB / 0.8226 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.4928, allocations: 3.938 kB / 0.8226 GB, free: 13.2 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001689/0.493, allocations: 21.84 kB / 0.8226 GB, free: 13.19 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.0003284/0.4933, allocations: 0.7217 MB / 0.8233 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001469/0.4935, allocations: 70.58 kB / 0.8234 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.4935, allocations: 0 / 0.8234 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.862e-05/0.4935, allocations: 27.69 kB / 0.8234 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001751/0.4937, allocations: 10.09 kB / 0.8234 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.4948, allocations: 1.418 MB / 0.8248 GB, free: 11.19 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.487e-05/0.4948, allocations: 71.42 kB / 0.8249 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.323e-05/0.4949, allocations: 3.844 kB / 0.8249 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.585e-05/0.4949, allocations: 15.72 kB / 0.8249 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of SimCode: time 6.21e-07/0.4949, allocations: 0 / 0.8249 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01496/0.5098, allocations: 2.343 MB / 0.8272 GB, free: 10.22 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.657/7.167, allocations: 9.391 kB / 0.8272 GB, free: 10.21 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.163378729019314] Failed to read output from testmodel.py, exit status != 0: 7.243654814083129 7.255565929 6.764115396 Calling exit ...