Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0008587/0.0008587, 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.0009241/0.0009241, allocations: 222.3 kB / 22.26 MB, free: 3.699 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.9839/0.9839, allocations: 230.6 MB / 256 MB, free: 9.812 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.814/0.814, allocations: 203.8 MB / 0.5042 GB, free: 10.76 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.FirstOrderHold,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",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.000903/0.000903, allocations: 67.31 kB / 0.7182 GB, free: 4.367 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5229/0.5238, allocations: 102 MB / 0.8178 GB, free: 1.254 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00141/0.5252, allocations: 0.6895 MB / 0.8185 GB, free: 0.8125 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008468/0.5261, allocations: 1.118 MB / 0.8196 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.436e-05/0.5261, allocations: 3.844 kB / 0.8196 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.792e-05/0.5261, allocations: 4.547 kB / 0.8196 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.334e-05/0.5262, allocations: 6.094 kB / 0.8196 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002678/0.5265, allocations: 57.92 kB / 0.8197 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.5266, allocations: 68.77 kB / 0.8197 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.289e-05/0.5267, allocations: 11.8 kB / 0.8198 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.933e-05/0.5267, allocations: 28.72 kB / 0.8198 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.042e-05/0.5268, allocations: 37.67 kB / 0.8198 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.437e-05/0.5268, allocations: 6.281 kB / 0.8198 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.702e-05/0.5269, allocations: 27.59 kB / 0.8199 GB, free: 15.87 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.198e-05/0.5269, allocations: 18.62 kB / 0.8199 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.796e-05/0.5269, allocations: 30.42 kB / 0.8199 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001466/0.5271, allocations: 77.02 kB / 0.82 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.5271, allocations: 4 kB / 0.82 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5271, allocations: 0 / 0.82 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.5271, allocations: 0 / 0.82 GB, free: 15.81 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004695/0.5276, allocations: 315.5 kB / 0.8203 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.5276, allocations: 10.56 kB / 0.8203 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.147e-05/0.5276, allocations: 39.31 kB / 0.8203 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.966e-05/0.5277, allocations: 9.375 kB / 0.8203 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.168e-05/0.5278, allocations: 121.5 kB / 0.8204 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.5278, allocations: 3.391 kB / 0.8205 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.5278, allocations: 11.7 kB / 0.8205 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.528, allocations: 76.56 kB / 0.8205 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.528, allocations: 3.938 kB / 0.8205 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.528, allocations: 4.297 kB / 0.8205 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.528, allocations: 0 / 0.8205 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.5281, allocations: 53.08 kB / 0.8206 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004002/0.5285, allocations: 285.4 kB / 0.8209 GB, free: 15 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001449/0.5287, allocations: 69.09 kB / 0.8209 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.377e-05/0.5287, allocations: 38.14 kB / 0.821 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.5288, allocations: 6.375 kB / 0.821 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001762/0.5289, allocations: 95.2 kB / 0.8211 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.5289, allocations: 0 / 0.8211 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0003546/0.5293, allocations: 173.2 kB / 0.8212 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002358/0.5295, allocations: 55.16 kB / 0.8213 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.52e-05/0.5296, allocations: 110.2 kB / 0.8214 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.5296, allocations: 33.25 kB / 0.8214 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.01e-05/0.5297, allocations: 93.52 kB / 0.8215 GB, free: 14.51 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.5297, allocations: 32.27 kB / 0.8215 GB, free: 14.49 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.5297, allocations: 30.22 kB / 0.8216 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.789e-05/0.5298, allocations: 321.2 kB / 0.8219 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.463e-05/0.5299, allocations: 35.97 kB / 0.8219 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.499e-05/0.53, allocations: 71.19 kB / 0.822 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.5301, allocations: 98.7 kB / 0.8221 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5301, allocations: 0.7031 kB / 0.8221 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001961/0.5303, allocations: 144.4 kB / 0.8222 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.5303, allocations: 3.031 kB / 0.8222 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.5303, allocations: 1.094 kB / 0.8222 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.5304, allocations: 6.562 kB / 0.8222 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.5305, allocations: 29.89 kB / 0.8223 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.5305, allocations: 3.938 kB / 0.8223 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.657e-05/0.5305, allocations: 12.41 kB / 0.8223 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-06/0.5305, allocations: 3.969 kB / 0.8223 GB, free: 13.96 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.111e-05/0.5306, allocations: 132.3 kB / 0.8224 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.175e-06/0.5306, allocations: 6.047 kB / 0.8224 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002061/0.5308, allocations: 144.7 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.5308, allocations: 1.25 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.5308, allocations: 0 / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.5308, allocations: 1.266 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003855/0.5312, allocations: 384.6 kB / 0.8229 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.5312, allocations: 0.75 kB / 0.8229 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.307e-05/0.5313, allocations: 11.55 kB / 0.8229 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.5313, allocations: 0 / 0.8229 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.5313, allocations: 0.7031 kB / 0.8229 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.5313, allocations: 5.922 kB / 0.8229 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.5313, allocations: 0 / 0.8229 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.5315, allocations: 243.4 kB / 0.8232 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.137e-06/0.5315, allocations: 6.984 kB / 0.8232 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.5315, allocations: 4.188 kB / 0.8232 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.472e-05/0.5316, allocations: 12.17 kB / 0.8232 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.5316, allocations: 14.59 kB / 0.8232 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.5316, allocations: 2.469 kB / 0.8232 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.943e-05/0.5317, allocations: 81.34 kB / 0.8233 GB, free: 13.17 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.5317, allocations: 4 kB / 0.8233 GB, free: 13.17 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001638/0.5318, allocations: 20 kB / 0.8233 GB, free: 13.16 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0004006/0.5322, allocations: 0.761 MB / 0.824 GB, free: 12.48 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001978/0.5324, allocations: 100.2 kB / 0.8241 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.5324, allocations: 0 / 0.8241 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.363e-05/0.5325, allocations: 47.31 kB / 0.8242 GB, free: 12.44 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.5327, allocations: 21.83 kB / 0.8242 GB, free: 12.43 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.5339, allocations: 1.494 MB / 0.8257 GB, free: 11.12 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001811/0.5341, allocations: 0.6977 MB / 0.8263 GB, free: 10.42 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.821e-05/0.5341, allocations: 14.81 kB / 0.8264 GB, free: 10.41 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.105e-05/0.5342, allocations: 20.94 kB / 0.8264 GB, free: 10.39 MB / 0.6198 GB Notification: Performance of SimCode: time 5.31e-07/0.5342, allocations: 0 / 0.8264 GB, free: 10.39 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.5525, allocations: 2.213 MB / 0.8285 GB, free: 9.926 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.637/7.19, allocations: 8.203 kB / 0.8285 GB, free: 9.922 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_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_FirstOrderHold.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.298330202931538] Failed to read output from testmodel.py, exit status != 0: 7.268050411017612 7.281246367 6.75139407 Calling exit ...