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.0007429/0.0007429, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008692/0.0008692, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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.9459/0.9459, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.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.7587/0.7587, allocations: 154.5 MB / 413.7 MB, free: 0.8281 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: Performance of FrontEnd - loaded program: time 3.476e-06/3.476e-06, allocations: 0 / 0.618 GB, free: 13.72 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.155e-05/2.503e-05, allocations: 2.281 kB / 0.618 GB, free: 13.72 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00161/0.001635, allocations: 0.6653 MB / 0.6187 GB, free: 13.06 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001203/0.002838, allocations: 1.112 MB / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.818e-05/0.002906, allocations: 0 / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 4.005e-05/0.002946, allocations: 3.938 kB / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 9.298e-05/0.003039, allocations: 11.86 kB / 0.6198 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003759/0.003415, allocations: 43.83 kB / 0.6198 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.003532, allocations: 71.83 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.003645, allocations: 7.984 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.889e-05/0.003734, allocations: 43.84 kB / 0.6199 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.818e-05/0.003792, allocations: 31.89 kB / 0.62 GB, free: 11.72 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.003812, allocations: 4 kB / 0.62 GB, free: 11.72 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.895e-05/0.003881, allocations: 27.98 kB / 0.62 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.619e-05/0.003907, allocations: 15.97 kB / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.496e-05/0.003942, allocations: 15.94 kB / 0.62 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.004099, allocations: 87.72 kB / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.004102, allocations: 0 / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.192e-06/0.004103, allocations: 4 kB / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.004107, allocations: 0 / 0.6201 GB, free: 11.57 MB / 0.5886 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.0005752/0.004683, allocations: 310.1 kB / 0.6204 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.004734, allocations: 13.47 kB / 0.6204 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.688e-05/0.004771, allocations: 34.75 kB / 0.6205 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.727e-05/0.004858, allocations: 8.891 kB / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.817e-05/0.004956, allocations: 117.7 kB / 0.6206 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.004981, allocations: 4.312 kB / 0.6206 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/0.004996, allocations: 8.375 kB / 0.6206 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.005194, allocations: 85.92 kB / 0.6207 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.005204, allocations: 192 / 0.6207 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.005216, allocations: 384 / 0.6207 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.487e-06/0.005225, allocations: 8.109 kB / 0.6207 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.005347, allocations: 59.95 kB / 0.6207 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003929/0.00574, allocations: 263.9 kB / 0.621 GB, free: 10.57 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001287/0.005868, allocations: 70.48 kB / 0.6211 GB, free: 10.49 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.376e-05/0.005932, allocations: 40.83 kB / 0.6211 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.005953, allocations: 8.047 kB / 0.6211 GB, free: 10.44 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.006135, allocations: 103.4 kB / 0.6212 GB, free: 10.32 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.006136, allocations: 0 / 0.6212 GB, free: 10.32 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0003204/0.006457, allocations: 173.5 kB / 0.6214 GB, free: 10.15 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.006496, allocations: 55.41 kB / 0.6214 GB, free: 10.08 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.532e-05/0.006561, allocations: 105.8 kB / 0.6215 GB, free: 9.969 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.006577, allocations: 29.7 kB / 0.6215 GB, free: 9.934 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.00662, allocations: 92.36 kB / 0.6216 GB, free: 9.836 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.486e-05/0.006645, allocations: 35.75 kB / 0.6217 GB, free: 9.801 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.311e-05/0.006688, allocations: 33.7 kB / 0.6217 GB, free: 9.762 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.755e-05/0.006776, allocations: 314.8 kB / 0.622 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.375e-05/0.006839, allocations: 35.97 kB / 0.622 GB, free: 9.41 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.824e-05/0.006918, allocations: 66.53 kB / 0.6221 GB, free: 9.336 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001398/0.007057, allocations: 98.47 kB / 0.6222 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.00706, allocations: 4 kB / 0.6222 GB, free: 9.227 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001758/0.007235, allocations: 149.4 kB / 0.6223 GB, free: 9.074 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.007247, allocations: 4 kB / 0.6223 GB, free: 9.07 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.007253, allocations: 4 kB / 0.6223 GB, free: 9.066 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.007264, allocations: 0 / 0.6223 GB, free: 9.066 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.73e-05/0.007341, allocations: 19.98 kB / 0.6224 GB, free: 9.047 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.007347, allocations: 0 / 0.6224 GB, free: 9.047 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.625e-05/0.007383, allocations: 19.98 kB / 0.6224 GB, free: 9.027 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.007393, allocations: 4 kB / 0.6224 GB, free: 9.023 MB / 0.5886 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.527e-05/0.007468, allocations: 122.8 kB / 0.6225 GB, free: 8.895 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/0.007479, allocations: 12.14 kB / 0.6225 GB, free: 8.883 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.00768, allocations: 142 kB / 0.6227 GB, free: 8.734 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.007685, allocations: 4 kB / 0.6227 GB, free: 8.73 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.007691, allocations: 4.469 kB / 0.6227 GB, free: 8.727 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.007694, allocations: 0 / 0.6227 GB, free: 8.727 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003342/0.008028, allocations: 389.4 kB / 0.623 GB, free: 8.297 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.00803, allocations: 0 / 0.623 GB, free: 8.297 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.151e-05/0.008061, allocations: 8 kB / 0.623 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.008064, allocations: 0 / 0.623 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.008077, allocations: 3.984 kB / 0.623 GB, free: 8.285 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.00808, allocations: 4 kB / 0.623 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.008081, allocations: 0 / 0.623 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000206/0.008287, allocations: 239.4 kB / 0.6233 GB, free: 8.031 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.215e-06/0.008295, allocations: 7.953 kB / 0.6233 GB, free: 8.023 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.008309, allocations: 3.984 kB / 0.6233 GB, free: 8.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.318e-05/0.008362, allocations: 11.98 kB / 0.6233 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.58e-05/0.008398, allocations: 4 kB / 0.6233 GB, free: 8.004 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.008408, allocations: 7.984 kB / 0.6233 GB, free: 7.996 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.406e-05/0.008442, allocations: 83.28 kB / 0.6234 GB, free: 7.914 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.008443, allocations: 0 / 0.6234 GB, free: 7.914 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001774/0.00862, allocations: 23.94 kB / 0.6234 GB, free: 7.891 MB / 0.5886 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.0004302/0.00905, allocations: 0.7886 MB / 0.6242 GB, free: 7.078 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001834/0.009234, allocations: 99.81 kB / 0.6243 GB, free: 6.98 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.009235, allocations: 0 / 0.6243 GB, free: 6.98 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.808e-05/0.009303, allocations: 40.2 kB / 0.6243 GB, free: 6.941 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001841/0.009487, allocations: 12.11 kB / 0.6243 GB, free: 6.93 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.01062, allocations: 1.503 MB / 0.6258 GB, free: 5.336 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.341e-05/0.01067, allocations: 67.34 kB / 0.6259 GB, free: 5.25 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.218e-05/0.0107, allocations: 12.48 kB / 0.6259 GB, free: 5.238 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.01074, allocations: 24.5 kB / 0.6259 GB, free: 5.215 MB / 0.5886 GB Notification: Performance of SimCode: time 5.91e-07/0.01074, allocations: 0 / 0.6259 GB, free: 5.215 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01431/0.02505, allocations: 2.789 MB / 0.6286 GB, free: 2.594 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.734/6.759, allocations: 0 / 0.6286 GB, free: 2.594 MB / 0.5886 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: 9.725410231389105] Failed to read output from testmodel.py, exit status != 0: 6.842012539505959 6.8498743 6.843966033 Calling exit ...