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.00198/0.00198, allocations: 88.72 kB / 19.44 MB, free: 356 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.002259/0.002259, allocations: 157.7 kB / 22.75 MB, free: 1.684 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 1.6/1.6, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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-545:108: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-545:116: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 1.219/1.219, allocations: 154.6 MB / 414.2 MB, free: 0.6367 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 178] 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: Performance of FrontEnd - loaded program: time 2.485e-06/2.485e-06, allocations: 0 / 0.5196 GB, free: 2.57 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.514e-05/3.762e-05, allocations: 8.078 kB / 0.5196 GB, free: 2.562 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002216/0.002254, allocations: 0.6543 MB / 0.5202 GB, free: 1.93 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.004158, allocations: 1.109 MB / 0.5213 GB, free: 0.8086 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.162e-05/0.004219, allocations: 0 / 0.5213 GB, free: 0.8086 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 3.653e-05/0.004256, allocations: 4.906 kB / 0.5213 GB, free: 0.8047 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 9.29e-05/0.004349, allocations: 7.875 kB / 0.5213 GB, free: 0.7969 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004103/0.004759, allocations: 57.34 kB / 0.5214 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.004938, allocations: 71.83 kB / 0.5215 GB, free: 0.6719 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.005048, allocations: 11.97 kB / 0.5215 GB, free: 0.6602 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.005183, allocations: 47.89 kB / 0.5215 GB, free: 0.6133 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.384e-05/0.005267, allocations: 20.78 kB / 0.5215 GB, free: 0.5938 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.005289, allocations: 7.938 kB / 0.5215 GB, free: 0.5859 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.225e-05/0.005381, allocations: 25.2 kB / 0.5216 GB, free: 0.5625 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 3.058e-05/0.005412, allocations: 11.98 kB / 0.5216 GB, free: 0.5508 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 6.534e-05/0.005477, allocations: 23.91 kB / 0.5216 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002423/0.005719, allocations: 84.36 kB / 0.5217 GB, free: 456 kB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.005723, allocations: 4 kB / 0.5217 GB, free: 452 kB / 490.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.005724, allocations: 1.812 kB / 0.5217 GB, free: 452 kB / 490.7 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.005729, allocations: 0 / 0.5217 GB, free: 452 kB / 490.7 MB 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.0009193/0.006648, allocations: 303.8 kB / 0.522 GB, free: 116 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.163e-05/0.00671, allocations: 8.031 kB / 0.522 GB, free: 108 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002255/0.006935, allocations: 24.81 kB / 0.522 GB, free: 84 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004794/0.007415, allocations: 105.8 kB / 0.5221 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.007451, allocations: 4.375 kB / 0.5221 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.65e-05/0.007477, allocations: 9.656 kB / 0.5221 GB, free: 15.94 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.007784, allocations: 78.2 kB / 0.5222 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.007798, allocations: 4.75 kB / 0.5222 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.007812, allocations: 384 / 0.5222 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.007824, allocations: 9.109 kB / 0.5222 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002476/0.008071, allocations: 60.2 kB / 0.5223 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006559/0.008727, allocations: 248.4 kB / 0.5225 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.008959, allocations: 71.91 kB / 0.5226 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.009093, allocations: 44.41 kB / 0.5226 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.009123, allocations: 4 kB / 0.5226 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.009422, allocations: 91.3 kB / 0.5227 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=10): time 1.452e-06/0.009423, allocations: 112 / 0.5227 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of matching and sorting (n=10): time 0.0006298/0.01005, allocations: 181.4 kB / 0.5229 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.01011, allocations: 51.41 kB / 0.5229 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.01024, allocations: 114.4 kB / 0.523 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.01028, allocations: 38.14 kB / 0.5231 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.575e-05/0.01035, allocations: 88.92 kB / 0.5232 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.0104, allocations: 31.75 kB / 0.5232 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.85e-05/0.01047, allocations: 34.67 kB / 0.5232 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000212/0.01068, allocations: 318.8 kB / 0.5235 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.01083, allocations: 41.78 kB / 0.5236 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.01098, allocations: 56.09 kB / 0.5236 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002872/0.01127, allocations: 104.5 kB / 0.5237 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01127, allocations: 0 / 0.5237 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004041/0.01168, allocations: 152.2 kB / 0.5239 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.0117, allocations: 10.12 kB / 0.5239 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.01171, allocations: 0 / 0.5239 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.718e-05/0.01173, allocations: 4 kB / 0.5239 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.01188, allocations: 19.98 kB / 0.5239 GB, free: 14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.01189, allocations: 4 kB / 0.5239 GB, free: 14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.158e-05/0.01198, allocations: 9.578 kB / 0.5239 GB, free: 13.99 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.01199, allocations: 4 kB / 0.5239 GB, free: 13.99 MB / 0.4948 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 0.000128/0.01212, allocations: 121.8 kB / 0.524 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.865e-05/0.01215, allocations: 16.83 kB / 0.524 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000424/0.01257, allocations: 147.2 kB / 0.5242 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.01258, allocations: 4 kB / 0.5242 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.01258, allocations: 0.6562 kB / 0.5242 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.01259, allocations: 3.984 kB / 0.5242 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006441/0.01323, allocations: 365.5 kB / 0.5245 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.01324, allocations: 0 / 0.5245 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.307e-05/0.01331, allocations: 8 kB / 0.5245 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.01331, allocations: 0 / 0.5245 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.01333, allocations: 3.984 kB / 0.5246 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.01333, allocations: 0 / 0.5246 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01333, allocations: 0 / 0.5246 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004642/0.0138, allocations: 242.5 kB / 0.5248 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.221e-05/0.01382, allocations: 11.94 kB / 0.5248 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.01384, allocations: 0 / 0.5248 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.01396, allocations: 15.98 kB / 0.5248 GB, free: 13 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.581e-05/0.01401, allocations: 3.984 kB / 0.5248 GB, free: 13 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.01403, allocations: 4 kB / 0.5248 GB, free: 13 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 6.769e-05/0.01409, allocations: 87.53 kB / 0.5249 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8e-08/0.0141, allocations: 3.25 kB / 0.5249 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002705/0.01437, allocations: 16 kB / 0.5249 GB, free: 12.89 MB / 0.4948 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.0002321/0.0146, allocations: 119.1 kB / 0.525 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003486/0.01495, allocations: 91.81 kB / 0.5251 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.01495, allocations: 7.625 kB / 0.5251 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.01511, allocations: 47.91 kB / 0.5252 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.01542, allocations: 11.92 kB / 0.5252 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004752/0.01589, allocations: 161.2 kB / 0.5253 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.981e-05/0.01598, allocations: 71.2 kB / 0.5254 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 4.498e-05/0.01603, allocations: 11.3 kB / 0.5254 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.42e-05/0.01607, allocations: 12.5 kB / 0.5254 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of SimCode: time 8.72e-07/0.01607, allocations: 0 / 0.5254 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of Templates: time 0.004613/0.02069, allocations: 1.074 MB / 0.5265 GB, free: 11.32 MB / 0.4948 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: 6.164537415956147]