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.00128/0.00128, allocations: 81.92 kB / 19.87 MB, free: 4.621 MB / 18.57 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.001413/0.001413, allocations: 173.7 kB / 23.27 MB, free: 1.227 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.9346/0.9346, allocations: 177.1 MB / 203.7 MB, free: 5.523 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-535:34: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-535:42: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.7163/0.7163, allocations: 154.9 MB / 415.1 MB, free: 280 kB / 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: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 3.938 kB / 0.5211 GB, free: 1.551 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.602e-05/2.797e-05, allocations: 5.125 kB / 0.5211 GB, free: 1.547 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002004/0.002032, allocations: 0.6616 MB / 0.5218 GB, free: 0.9062 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.003538, allocations: 1.143 MB / 0.5229 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.848e-05/0.003597, allocations: 0 / 0.5229 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 3.083e-05/0.003628, allocations: 5.625 kB / 0.5229 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 7.868e-05/0.003706, allocations: 7.875 kB / 0.5229 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003313/0.004038, allocations: 51.75 kB / 0.5229 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.004156, allocations: 71.83 kB / 0.523 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.013e-05/0.004247, allocations: 8.547 kB / 0.523 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.004357, allocations: 48.8 kB / 0.5231 GB, free: 15.56 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 6.135e-05/0.004418, allocations: 19.97 kB / 0.5231 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.004437, allocations: 4 kB / 0.5231 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 7.633e-05/0.004514, allocations: 25.11 kB / 0.5231 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 2.572e-05/0.004539, allocations: 15.92 kB / 0.5231 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 2.965e-05/0.004569, allocations: 19.97 kB / 0.5231 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001462/0.004715, allocations: 68.48 kB / 0.5232 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.004718, allocations: 0 / 0.5232 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.182e-06/0.004719, allocations: 1.031 kB / 0.5232 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.004724, allocations: 0 / 0.5232 GB, free: 15.41 MB / 0.4948 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.0005039/0.005228, allocations: 409.9 kB / 0.5236 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.00527, allocations: 8.031 kB / 0.5236 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.005381, allocations: 12.89 kB / 0.5236 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.001e-05/0.005471, allocations: 121.6 kB / 0.5237 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.005491, allocations: 4.375 kB / 0.5237 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.452e-05/0.005506, allocations: 12.31 kB / 0.5237 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001547/0.00566, allocations: 75.55 kB / 0.5238 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.005673, allocations: 1.469 kB / 0.5238 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.005682, allocations: 384 / 0.5238 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.00569, allocations: 4.375 kB / 0.5238 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.537e-05/0.005735, allocations: 19.42 kB / 0.5238 GB, free: 14.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003959/0.006131, allocations: 273.5 kB / 0.5241 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.00624, allocations: 63.73 kB / 0.5242 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.088e-05/0.006271, allocations: 19.67 kB / 0.5242 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.006296, allocations: 4.844 kB / 0.5242 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000104/0.0064, allocations: 67.64 kB / 0.5243 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=10): time 1.763e-06/0.006401, allocations: 0 / 0.5243 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of matching and sorting (n=10): time 0.0002452/0.006647, allocations: 113.7 kB / 0.5244 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.006685, allocations: 55.41 kB / 0.5244 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.517e-05/0.006781, allocations: 181.8 kB / 0.5246 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.0068, allocations: 29.7 kB / 0.5246 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.561e-05/0.006856, allocations: 135.7 kB / 0.5247 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 3.149e-05/0.006888, allocations: 31.77 kB / 0.5248 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.362e-05/0.006941, allocations: 36.5 kB / 0.5248 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.00708, allocations: 0.4885 MB / 0.5253 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.08e-05/0.007111, allocations: 15.92 kB / 0.5253 GB, free: 13.08 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.94e-05/0.007161, allocations: 41.47 kB / 0.5253 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.365e-05/0.007254, allocations: 68.47 kB / 0.5254 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.007257, allocations: 0 / 0.5254 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001603/0.007417, allocations: 102.1 kB / 0.5255 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.007434, allocations: 4 kB / 0.5255 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.007441, allocations: 4.938 kB / 0.5255 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.007454, allocations: 0 / 0.5255 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.007571, allocations: 24.86 kB / 0.5255 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.007575, allocations: 0 / 0.5255 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.699e-05/0.007622, allocations: 12.56 kB / 0.5255 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.007634, allocations: 7.938 kB / 0.5256 GB, free: 12.79 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 9.844e-05/0.007732, allocations: 169.6 kB / 0.5257 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.217e-05/0.007754, allocations: 11.95 kB / 0.5257 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001772/0.007932, allocations: 103.1 kB / 0.5258 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.007936, allocations: 7.984 kB / 0.5258 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/0.007938, allocations: 3.094 kB / 0.5258 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.007942, allocations: 0 / 0.5258 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003303/0.008272, allocations: 346 kB / 0.5262 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.008274, allocations: 0 / 0.5262 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.256e-05/0.008327, allocations: 11.98 kB / 0.5262 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.008331, allocations: 3.938 kB / 0.5262 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.008338, allocations: 0 / 0.5262 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.00834, allocations: 0 / 0.5262 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.008343, allocations: 6.438 kB / 0.5262 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001971/0.00854, allocations: 239.9 kB / 0.5264 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.751e-05/0.008557, allocations: 11.94 kB / 0.5264 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.008577, allocations: 7.938 kB / 0.5264 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.962e-05/0.008656, allocations: 8 kB / 0.5264 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.279e-05/0.008689, allocations: 3.984 kB / 0.5264 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.008698, allocations: 5.219 kB / 0.5265 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 5.284e-05/0.008751, allocations: 135.4 kB / 0.5266 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.01e-07/0.008751, allocations: 0 / 0.5266 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002777/0.009029, allocations: 19.94 kB / 0.5266 GB, free: 11.66 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.0001512/0.00918, allocations: 113.2 kB / 0.5267 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.000129/0.009309, allocations: 55.59 kB / 0.5268 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.009311, allocations: 0 / 0.5268 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 5.143e-05/0.009362, allocations: 32.14 kB / 0.5268 GB, free: 11.45 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.009655, allocations: 18.83 kB / 0.5268 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004933/0.01015, allocations: 166.7 kB / 0.527 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.182e-05/0.01019, allocations: 59.34 kB / 0.527 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 3.456e-05/0.01022, allocations: 11.53 kB / 0.527 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.32e-05/0.0103, allocations: 82.12 kB / 0.5271 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of SimCode: time 6.72e-07/0.0103, allocations: 0 / 0.5271 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of Templates: time 0.002665/0.01296, allocations: 1.171 MB / 0.5283 GB, free: 9.973 MB / 0.4948 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=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.434138390235603]