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.0007428/0.0007428, 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.000814/0.000814, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9106/0.9106, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.7372/0.7372, allocations: 154.6 MB / 413.7 MB, free: 0.8203 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 1.603e-06/1.603e-06, allocations: 0 / 0.618 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.417e-05/1.577e-05, allocations: 2.844 kB / 0.618 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001271/0.001287, allocations: 0.672 MB / 0.6187 GB, free: 13.05 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001231/0.002518, allocations: 1.108 MB / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.86e-05/0.002586, allocations: 0 / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.503e-05/0.002621, allocations: 3.938 kB / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.41e-05/0.002695, allocations: 11.86 kB / 0.6198 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003485/0.003044, allocations: 51.81 kB / 0.6198 GB, free: 11.87 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.003147, allocations: 63.84 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.656e-05/0.003243, allocations: 7.984 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.302e-05/0.003326, allocations: 43.89 kB / 0.6199 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.707e-05/0.003373, allocations: 27.91 kB / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.003389, allocations: 4 kB / 0.62 GB, free: 11.72 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.487e-05/0.003453, allocations: 35.91 kB / 0.62 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.031e-05/0.003474, allocations: 11.98 kB / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.079e-05/0.003504, allocations: 19.92 kB / 0.62 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.003643, allocations: 83.73 kB / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.003645, allocations: 4 kB / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of FrontEnd: time 8.42e-07/0.003646, allocations: 3.938 kB / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.898e-06/0.00365, 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.0004733/0.004123, allocations: 306.2 kB / 0.6204 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.004163, allocations: 13.47 kB / 0.6204 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.131e-05/0.004194, allocations: 34.75 kB / 0.6205 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.602e-05/0.00426, allocations: 8.891 kB / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.945e-05/0.00434, allocations: 121.7 kB / 0.6206 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.004359, allocations: 384 / 0.6206 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.004372, allocations: 8.375 kB / 0.6206 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001601/0.004532, allocations: 86.14 kB / 0.6207 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.004541, allocations: 192 / 0.6207 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.00455, allocations: 384 / 0.6207 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.004556, allocations: 4.125 kB / 0.6207 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001145/0.004671, allocations: 59.95 kB / 0.6207 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003775/0.005048, allocations: 259.9 kB / 0.621 GB, free: 10.57 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/0.005177, allocations: 70.59 kB / 0.621 GB, free: 10.49 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.529e-05/0.005242, allocations: 48.77 kB / 0.6211 GB, free: 10.44 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.005266, allocations: 3.938 kB / 0.6211 GB, free: 10.44 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001548/0.00542, allocations: 95.3 kB / 0.6212 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.005422, allocations: 0 / 0.6212 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0003361/0.005758, allocations: 173.7 kB / 0.6214 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.005804, allocations: 59.34 kB / 0.6214 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.825e-05/0.005872, allocations: 105.8 kB / 0.6215 GB, free: 9.973 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.00589, allocations: 29.7 kB / 0.6215 GB, free: 9.938 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.005935, allocations: 92.36 kB / 0.6216 GB, free: 9.84 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.817e-05/0.005963, allocations: 39.73 kB / 0.6217 GB, free: 9.801 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/0.006005, allocations: 33.7 kB / 0.6217 GB, free: 9.762 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.63e-05/0.006101, allocations: 314.8 kB / 0.622 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.851e-05/0.00617, allocations: 35.97 kB / 0.622 GB, free: 9.41 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.91e-05/0.006249, allocations: 66.53 kB / 0.6221 GB, free: 9.336 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.00639, allocations: 99.89 kB / 0.6222 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.006392, allocations: 4 kB / 0.6222 GB, free: 9.227 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001952/0.006587, allocations: 149.4 kB / 0.6223 GB, free: 9.074 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.006602, allocations: 10.19 kB / 0.6223 GB, free: 9.066 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.006607, allocations: 0 / 0.6223 GB, free: 9.066 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.006622, allocations: 0 / 0.6223 GB, free: 9.066 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.255e-05/0.006705, allocations: 19.98 kB / 0.6224 GB, free: 9.047 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.00671, allocations: 0 / 0.6224 GB, free: 9.047 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.849e-05/0.006748, allocations: 19.98 kB / 0.6224 GB, free: 9.027 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.006759, allocations: 8.25 kB / 0.6224 GB, free: 9.02 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.415e-05/0.006833, allocations: 118.8 kB / 0.6225 GB, free: 8.895 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.868e-06/0.006843, allocations: 11.89 kB / 0.6225 GB, free: 8.883 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002091/0.007052, allocations: 142.4 kB / 0.6227 GB, free: 8.734 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.007056, allocations: 4 kB / 0.6227 GB, free: 8.73 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.007063, allocations: 7.984 kB / 0.6227 GB, free: 8.723 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.007066, allocations: 0 / 0.6227 GB, free: 8.723 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003411/0.007407, allocations: 385.5 kB / 0.623 GB, free: 8.297 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.007409, allocations: 0 / 0.623 GB, free: 8.297 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.225e-05/0.007441, allocations: 8 kB / 0.623 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.007442, allocations: 0 / 0.623 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.007453, allocations: 7.984 kB / 0.623 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.007454, allocations: 0 / 0.623 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.007455, allocations: 0 / 0.623 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001839/0.007639, allocations: 235.4 kB / 0.6233 GB, free: 8.035 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-06/0.007646, allocations: 11.95 kB / 0.6233 GB, free: 8.023 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.00766, allocations: 3.984 kB / 0.6233 GB, free: 8.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.039e-05/0.007711, allocations: 11.98 kB / 0.6233 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.3e-05/0.007744, allocations: 4 kB / 0.6233 GB, free: 8.004 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.007751, allocations: 7.984 kB / 0.6233 GB, free: 7.996 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.797e-05/0.007779, allocations: 83.28 kB / 0.6234 GB, free: 7.914 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.1e-08/0.007779, allocations: 0 / 0.6234 GB, free: 7.914 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000164/0.007943, 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.0004635/0.008407, allocations: 0.7864 MB / 0.6242 GB, free: 7.078 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001856/0.008593, allocations: 95.88 kB / 0.6243 GB, free: 6.984 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.008594, allocations: 288 / 0.6243 GB, free: 6.984 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.826e-05/0.008662, allocations: 39.92 kB / 0.6243 GB, free: 6.945 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.008854, allocations: 11.97 kB / 0.6243 GB, free: 6.934 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.01006, allocations: 1.506 MB / 0.6258 GB, free: 5.336 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.078e-05/0.01011, allocations: 67.34 kB / 0.6259 GB, free: 5.25 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.211e-05/0.01015, 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 4.158e-05/0.01019, allocations: 24.5 kB / 0.6259 GB, free: 5.215 MB / 0.5886 GB Notification: Performance of SimCode: time 5.41e-07/0.01019, allocations: 0 / 0.6259 GB, free: 5.215 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01519/0.02538, allocations: 2.79 MB / 0.6286 GB, free: 2.594 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.947/6.973, 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.721918589435518] Failed to read output from testmodel.py, exit status != 0: 7.052587504498661 7.060686962 7.055447902 Calling exit ...