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.0007992/0.0007992, allocations: 80.44 kB / 19.91 MB, free: 4 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.000829/0.000829, allocations: 169.2 kB / 23.19 MB, free: 1.371 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.8883/0.8883, allocations: 177.2 MB / 203.6 MB, free: 5.758 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:686: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:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 master/package.mo): time 0.708/0.708, allocations: 154.9 MB / 414.9 MB, free: 0.4922 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: translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_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_dev_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.0009241/0.0009241, allocations: 66.78 kB / 0.6198 GB, free: 12.8 MB / 0.5886 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4593/0.4602, allocations: 102 MB / 0.7194 GB, free: 23.44 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001399/0.4616, allocations: 0.6561 MB / 0.7201 GB, free: 23.04 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.4626, allocations: 1.111 MB / 0.7211 GB, free: 22.23 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.533e-05/0.4627, allocations: 1.062 kB / 0.7211 GB, free: 22.23 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 3.018e-05/0.4627, allocations: 3.938 kB / 0.7212 GB, free: 22.23 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 6.885e-05/0.4628, allocations: 6.094 kB / 0.7212 GB, free: 22.22 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.4631, allocations: 55.17 kB / 0.7212 GB, free: 22.19 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.4632, allocations: 71.23 kB / 0.7213 GB, free: 22.16 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.4633, allocations: 14.94 kB / 0.7213 GB, free: 22.15 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 8.982e-05/0.4634, allocations: 37.78 kB / 0.7213 GB, free: 22.13 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 5.406e-05/0.4634, allocations: 28.62 kB / 0.7214 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.4635, allocations: 10.84 kB / 0.7214 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 6.867e-05/0.4635, allocations: 24.92 kB / 0.7214 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.428e-05/0.4635, allocations: 14.42 kB / 0.7214 GB, free: 22.1 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 3.623e-05/0.4636, allocations: 21.92 kB / 0.7214 GB, free: 22.09 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.4637, allocations: 96.64 kB / 0.7215 GB, free: 22.05 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4637, allocations: 0 / 0.7215 GB, free: 22.05 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4638, allocations: 0 / 0.7215 GB, free: 22.05 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.4638, allocations: 0 / 0.7215 GB, free: 22.05 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.0004845/0.4642, allocations: 312.8 kB / 0.7218 GB, free: 21.76 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.4643, allocations: 13.72 kB / 0.7218 GB, free: 21.75 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.245e-05/0.4644, allocations: 10.42 kB / 0.7218 GB, free: 21.75 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.104e-05/0.4644, allocations: 111.5 kB / 0.7219 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.4645, allocations: 6.812 kB / 0.722 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.4645, allocations: 6.75 kB / 0.722 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001615/0.4646, allocations: 77.56 kB / 0.722 GB, free: 21.57 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.4646, allocations: 192 / 0.722 GB, free: 21.57 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.4647, allocations: 13.77 kB / 0.722 GB, free: 21.56 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.4647, allocations: 1.281 kB / 0.722 GB, free: 21.56 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.4648, allocations: 54.56 kB / 0.7221 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003489/0.4651, allocations: 249.7 kB / 0.7223 GB, free: 21.32 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001309/0.4652, allocations: 73.28 kB / 0.7224 GB, free: 21.28 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.563e-05/0.4653, allocations: 41 kB / 0.7224 GB, free: 21.26 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.4653, allocations: 2.344 kB / 0.7224 GB, free: 21.26 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001666/0.4655, allocations: 94.73 kB / 0.7225 GB, free: 21.2 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.653e-06/0.4655, allocations: 0 / 0.7225 GB, free: 21.2 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003305/0.4658, allocations: 177.2 kB / 0.7227 GB, free: 21.12 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.162e-05/0.4659, allocations: 54.88 kB / 0.7228 GB, free: 21.06 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.075e-05/0.4659, allocations: 106.1 kB / 0.7229 GB, free: 20.96 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.4659, allocations: 32.84 kB / 0.7229 GB, free: 20.92 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.602e-05/0.466, allocations: 90.98 kB / 0.723 GB, free: 20.83 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.466, allocations: 27.94 kB / 0.723 GB, free: 20.81 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.466, allocations: 35.27 kB / 0.723 GB, free: 20.78 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.14e-05/0.466, allocations: 319.6 kB / 0.7233 GB, free: 20.46 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.131e-05/0.4661, allocations: 35.8 kB / 0.7234 GB, free: 20.46 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.67e-05/0.4662, allocations: 61.81 kB / 0.7234 GB, free: 20.42 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.4663, allocations: 102.3 kB / 0.7235 GB, free: 20.37 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4663, allocations: 2.047 kB / 0.7235 GB, free: 20.37 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001823/0.4665, allocations: 149.5 kB / 0.7237 GB, free: 20.3 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.4665, allocations: 9.562 kB / 0.7237 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.4665, allocations: 1.156 kB / 0.7237 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.4666, allocations: 1.125 kB / 0.7237 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.743e-05/0.4666, allocations: 27.3 kB / 0.7237 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.4666, allocations: 2.375 kB / 0.7237 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.456e-05/0.4667, allocations: 11.28 kB / 0.7237 GB, free: 20.28 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.4667, allocations: 7.938 kB / 0.7237 GB, free: 20.28 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.873e-05/0.4668, allocations: 130.4 kB / 0.7239 GB, free: 20.15 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-06/0.4668, allocations: 11.44 kB / 0.7239 GB, free: 20.14 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002183/0.467, allocations: 143.1 kB / 0.724 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.467, allocations: 2.016 kB / 0.724 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.467, allocations: 0 / 0.724 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.989e-06/0.467, allocations: 4.031 kB / 0.724 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.467, allocations: 1.719 kB / 0.724 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.97e-05/0.4671, allocations: 17.39 kB / 0.724 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.32e-05/0.4671, allocations: 6.562 kB / 0.724 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002004/0.4673, allocations: 226.6 kB / 0.7243 GB, free: 19.92 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002005/0.4675, allocations: 310.1 kB / 0.7245 GB, free: 19.69 MB / 0.6355 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.638e-05/0.4676, allocations: 40.8 kB / 0.7246 GB, free: 19.68 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 2.119e-05/0.4676, allocations: 90.52 kB / 0.7247 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of Backend: time 3.1e-07/0.4676, allocations: 3.938 kB / 0.7247 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003799/0.468, allocations: 143.6 kB / 0.7248 GB, free: 19.51 MB / 0.6355 GB Notification: Performance of SimCode: time 0.0003648/0.4683, allocations: 0.5987 MB / 0.7254 GB, free: 18.9 MB / 0.6355 GB Notification: Performance of Templates: time 0.00325/0.4716, allocations: 1.296 MB / 0.7267 GB, free: 18.77 MB / 0.6355 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 660] (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 & ./IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.108080000150949] Failed to read output from testmodel.py, exit status != 0: 0.47845562477596104 0.48849528699999994 0.02262793 Calling exit ...