Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0007553/0.0007553, allocations: 72.45 kB / 19.9 MB, free: 12 kB / 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.0007701/0.0007701, allocations: 165.9 kB / 23.18 MB, free: 1.379 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.8292/0.8292, allocations: 177.2 MB / 203.6 MB, free: 5.766 MB / 186.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.6844/0.6844, allocations: 154.7 MB / 414.7 MB, free: 0.7383 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 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: translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [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.0008828/0.0008828, allocations: 75.44 kB / 0.6195 GB, free: 13.08 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4083/0.4091, allocations: 102 MB / 0.7191 GB, free: 23.62 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001299/0.4104, allocations: 0.663 MB / 0.7197 GB, free: 23.21 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.0009748/0.4114, allocations: 1.103 MB / 0.7208 GB, free: 22.41 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.53e-05/0.4115, allocations: 1.219 kB / 0.7208 GB, free: 22.41 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 2.981e-05/0.4115, allocations: 4.641 kB / 0.7208 GB, free: 22.41 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 6.245e-05/0.4116, allocations: 5.656 kB / 0.7208 GB, free: 22.41 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.4118, allocations: 54.14 kB / 0.7209 GB, free: 22.38 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 9.782e-05/0.4119, allocations: 70.09 kB / 0.7209 GB, free: 22.34 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 9.366e-05/0.412, allocations: 17.05 kB / 0.721 GB, free: 22.33 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 8.415e-05/0.4121, allocations: 46.05 kB / 0.721 GB, free: 22.31 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 5.21e-05/0.4122, allocations: 24.56 kB / 0.721 GB, free: 22.3 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.4122, allocations: 6.812 kB / 0.721 GB, free: 22.3 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 6.117e-05/0.4123, allocations: 25.92 kB / 0.7211 GB, free: 22.29 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.413e-05/0.4123, allocations: 17.47 kB / 0.7211 GB, free: 22.28 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 3.341e-05/0.4123, allocations: 22.03 kB / 0.7211 GB, free: 22.27 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.4125, allocations: 92.2 kB / 0.7212 GB, free: 22.23 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.4125, allocations: 0 / 0.7212 GB, free: 22.23 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.342e-06/0.4125, allocations: 1.125 kB / 0.7212 GB, free: 22.23 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.4125, allocations: 0 / 0.7212 GB, free: 22.23 MB / 0.6355 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.0004402/0.4129, allocations: 315.7 kB / 0.7215 GB, free: 21.94 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.4129, allocations: 10.06 kB / 0.7215 GB, free: 21.94 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.422e-05/0.413, allocations: 9.891 kB / 0.7215 GB, free: 21.93 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.741e-05/0.4131, allocations: 111.5 kB / 0.7216 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.4131, allocations: 11.48 kB / 0.7216 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.592e-05/0.4131, allocations: 9.875 kB / 0.7216 GB, free: 21.79 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001533/0.4133, allocations: 84.56 kB / 0.7217 GB, free: 21.75 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.4133, allocations: 4.188 kB / 0.7217 GB, free: 21.74 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.4133, allocations: 5.625 kB / 0.7217 GB, free: 21.74 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4133, allocations: 1.062 kB / 0.7217 GB, free: 21.74 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.4134, allocations: 54.03 kB / 0.7218 GB, free: 21.73 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000333/0.4137, allocations: 245.9 kB / 0.722 GB, free: 21.5 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.4139, allocations: 70.12 kB / 0.7221 GB, free: 21.46 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.283e-05/0.4139, allocations: 48.94 kB / 0.7221 GB, free: 21.44 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.414, allocations: 1.438 kB / 0.7221 GB, free: 21.44 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001337/0.4141, allocations: 91.69 kB / 0.7222 GB, free: 21.38 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.4141, allocations: 1.188 kB / 0.7222 GB, free: 21.38 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003203/0.4144, allocations: 171.8 kB / 0.7224 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.4144, allocations: 55.34 kB / 0.7224 GB, free: 21.24 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.453e-05/0.4145, allocations: 113.4 kB / 0.7225 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.4145, allocations: 27.92 kB / 0.7226 GB, free: 21.1 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.528e-05/0.4145, allocations: 87.69 kB / 0.7226 GB, free: 21.01 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.4145, allocations: 31.25 kB / 0.7227 GB, free: 20.99 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.4146, allocations: 36.16 kB / 0.7227 GB, free: 20.96 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.179e-05/0.4146, allocations: 315.6 kB / 0.723 GB, free: 20.65 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.283e-05/0.4147, allocations: 39.72 kB / 0.7231 GB, free: 20.64 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.84e-05/0.4148, allocations: 61.02 kB / 0.7231 GB, free: 20.61 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.4149, allocations: 105.9 kB / 0.7232 GB, free: 20.55 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4149, allocations: 1.734 kB / 0.7232 GB, free: 20.55 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001846/0.4151, allocations: 145.3 kB / 0.7234 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.4151, allocations: 6.188 kB / 0.7234 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.4151, allocations: 4.234 kB / 0.7234 GB, free: 20.47 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.4151, allocations: 2.828 kB / 0.7234 GB, free: 20.47 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.138e-05/0.4152, allocations: 27.53 kB / 0.7234 GB, free: 20.46 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.4152, allocations: 9.594 kB / 0.7234 GB, free: 20.46 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.761e-05/0.4153, allocations: 16.16 kB / 0.7234 GB, free: 20.45 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.4153, allocations: 3.344 kB / 0.7234 GB, free: 20.45 MB / 0.6355 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 5.48e-05/0.4153, allocations: 126.2 kB / 0.7235 GB, free: 20.32 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-06/0.4153, allocations: 7.359 kB / 0.7235 GB, free: 20.32 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002107/0.4155, allocations: 147.9 kB / 0.7237 GB, free: 20.25 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.4155, allocations: 5.156 kB / 0.7237 GB, free: 20.25 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.4155, allocations: 1.078 kB / 0.7237 GB, free: 20.25 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.4155, allocations: 1.125 kB / 0.7237 GB, free: 20.25 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.4158, allocations: 349.1 kB / 0.724 GB, free: 19.97 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4158, allocations: 0 / 0.724 GB, free: 19.97 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.607e-05/0.4159, allocations: 11.72 kB / 0.724 GB, free: 19.97 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4159, allocations: 0 / 0.724 GB, free: 19.97 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.4159, allocations: 2.578 kB / 0.724 GB, free: 19.97 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.4159, allocations: 0 / 0.724 GB, free: 19.97 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4159, allocations: 9 kB / 0.724 GB, free: 19.96 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001864/0.4161, allocations: 238.5 kB / 0.7243 GB, free: 19.8 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.776e-06/0.4161, allocations: 10.62 kB / 0.7243 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.4161, allocations: 2.984 kB / 0.7243 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.268e-05/0.4161, allocations: 13.33 kB / 0.7243 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.888e-05/0.4162, allocations: 9.25 kB / 0.7243 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.4162, allocations: 3.297 kB / 0.7243 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 1.988e-05/0.4162, allocations: 87 kB / 0.7244 GB, free: 19.71 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6e-08/0.4162, allocations: 4 kB / 0.7244 GB, free: 19.7 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001664/0.4164, allocations: 19.98 kB / 0.7244 GB, free: 19.7 MB / 0.6355 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.0001004/0.4165, allocations: 107.4 kB / 0.7245 GB, free: 19.61 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001919/0.4167, allocations: 101.6 kB / 0.7246 GB, free: 19.58 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.4167, allocations: 1.156 kB / 0.7246 GB, free: 19.58 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.484e-05/0.4167, allocations: 48.12 kB / 0.7247 GB, free: 19.56 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.4169, allocations: 10.84 kB / 0.7247 GB, free: 19.56 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002776/0.4172, allocations: 191.2 kB / 0.7249 GB, free: 19.39 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.049e-05/0.4173, allocations: 69.17 kB / 0.7249 GB, free: 19.32 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.632e-05/0.4173, allocations: 14.91 kB / 0.7249 GB, free: 19.31 MB / 0.6355 GB Notification: Performance of SimCode: time 4.51e-07/0.4173, allocations: 0 / 0.7249 GB, free: 19.31 MB / 0.6355 GB Notification: Performance of Templates: time 0.002291/0.4196, allocations: 1.129 MB / 0.726 GB, free: 19.21 MB / 0.6355 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.165194213856012] Failed to read output from testmodel.py, exit status != 0: 0.42466796515509486 0.43387307899999994 0.019619404 Calling exit ...