Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001576/0.001576, allocations: 116.7 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001679/0.001679, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.444/1.444, allocations: 230.5 MB / 255.4 MB, free: 14.96 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 67.83 kB / 374.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1104, allocations: 53.31 MB / 428.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004464/0.1149, allocations: 2.904 MB / 431 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.1165, allocations: 0.9002 MB / 431.9 MB, free: 488 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.1167, allocations: 7.938 kB / 431.9 MB, free: 480 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001978/0.1169, allocations: 51.44 kB / 431.9 MB, free: 428 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003471/0.1172, allocations: 123.1 kB / 432.1 MB, free: 304 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.1176, allocations: 219.7 kB / 432.3 MB, free: 84 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2022/0.3199, allocations: 0.5348 MB / 432.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.3201, allocations: 80.14 kB / 432.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002489/0.3203, allocations: 197.6 kB / 433.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003028/0.3206, allocations: 223.5 kB / 433.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.105e-05/0.3207, allocations: 47.72 kB / 433.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.845e-05/0.3208, allocations: 47.94 kB / 433.4 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.894e-05/0.3209, allocations: 103.6 kB / 433.5 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.3211, allocations: 201.5 kB / 433.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004637/0.3215, allocations: 0.4962 MB / 434.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3215, allocations: 1.344 kB / 434.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3215, allocations: 0 / 434.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.3215, allocations: 0 / 434.2 MB, free: 8.082 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001551/0.3231, allocations: 0.7522 MB / 434.9 MB, free: 7.602 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3231, allocations: 11.06 kB / 434.9 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.3232, allocations: 40.52 kB / 435 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004095/0.3236, allocations: 339.8 kB / 435.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.884e-05/0.3237, allocations: 79.75 kB / 435.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.72e-05/0.3238, allocations: 34.28 kB / 435.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004343/0.3242, allocations: 279.3 kB / 435.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.3243, allocations: 4.984 kB / 435.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.917e-05/0.3243, allocations: 13.41 kB / 435.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.3243, allocations: 6.344 kB / 435.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003514/0.3246, allocations: 169.9 kB / 435.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002691/0.3273, allocations: 1.466 MB / 437.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.3275, allocations: 97.56 kB / 437.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.3276, allocations: 49.83 kB / 437.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.3276, allocations: 2.906 kB / 437.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.3277, allocations: 43.55 kB / 437.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.3277, allocations: 0 / 437.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003064/0.3307, allocations: 1.079 MB / 438.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.3308, allocations: 104.7 kB / 438.7 MB, free: 5.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003603/0.3311, allocations: 329 kB / 439 MB, free: 5.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.3312, allocations: 38.2 kB / 439.1 MB, free: 5.438 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.3313, allocations: 202.7 kB / 439.3 MB, free: 5.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.253e-05/0.3313, allocations: 53.06 kB / 439.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.3315, allocations: 72.77 kB / 439.4 MB, free: 5.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.659e-05/0.3316, allocations: 336.8 kB / 439.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003506/0.3319, allocations: 152.9 kB / 439.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003824/0.3323, allocations: 255.8 kB / 440.1 MB, free: 4.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006127/0.3329, allocations: 348.6 kB / 440.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3329, allocations: 1.25 kB / 440.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009497/0.3424, allocations: 1.316 MB / 441.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.3425, allocations: 7.531 kB / 441.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.3425, allocations: 6.25 kB / 441.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01119/0.3537, allocations: 1.156 MB / 443 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000483/0.3541, allocations: 71.12 kB / 443 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/0.3648, allocations: 5.334 MB / 448.4 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006192/0.3654, allocations: 36.12 kB / 448.4 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.452e-05/0.3655, allocations: 24.03 kB / 448.4 MB, free: 252 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (integrator2.local_reset,integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,1), (4,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001846/0.3657, allocations: 149 kB / 448.6 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-05/0.3657, allocations: 32.09 kB / 448.6 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.3658, allocations: 25.5 kB / 448.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.3658, allocations: 2.844 kB / 448.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.3658, allocations: 0 / 448.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3658, allocations: 6.828 kB / 448.6 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.3671, allocations: 0.7551 MB / 449.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3671, allocations: 0.7031 kB / 449.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003616/0.3674, allocations: 46.44 kB / 449.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.3674, allocations: 1.281 kB / 449.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.833e-05/0.3675, allocations: 13.39 kB / 449.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.706e-06/0.3675, allocations: 2.562 kB / 449.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3675, allocations: 0 / 449.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009359/0.3684, allocations: 0.5189 MB / 450 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.505e-05/0.3685, allocations: 106.3 kB / 450.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.667e-05/0.3686, allocations: 6.031 kB / 450.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004072/0.369, allocations: 27.52 kB / 450.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.238e-05/0.369, allocations: 12.92 kB / 450.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.3691, allocations: 11.34 kB / 450.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002743/0.3693, allocations: 219.6 kB / 450.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3693, allocations: 8 kB / 450.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000594/0.3699, allocations: 101.4 kB / 450.5 MB, free: 14.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator2.y,integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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 Backend phase and start with SimCode phase: time 0.0001436/0.3701, allocations: 102.4 kB / 450.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002193/0.3723, allocations: 0.7322 MB / 451.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.3723, allocations: 1.219 kB / 451.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002666/0.3725, allocations: 95.89 kB / 451.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006145/0.3732, allocations: 73.09 kB / 451.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.3746, allocations: 0.626 MB / 452.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.3751, allocations: 0.7802 MB / 452.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.3753, allocations: 33.7 kB / 452.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3753, allocations: 1.281 kB / 452.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of Templates: time 0.01086/0.3861, allocations: 6.724 MB / 459.6 MB, free: 10.68 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.753657054156065] Failed to read output from testmodel.py, exit status != 0: 0.39438243908807635 0.40720813100000003 0.08278817100000001 Calling exit ...