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.001359/0.001359, allocations: 117 kB / 21.18 MB, free: 0.6289 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.001467/0.001467, allocations: 209.3 kB / 24.47 MB, free: 3.898 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.435/1.435, allocations: 230.5 MB / 258.1 MB, free: 8.148 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.002498/0.002498, allocations: 67.84 kB / 378.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3061, allocations: 53.32 MB / 432.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004854/0.311, allocations: 2.925 MB / 435 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.3127, allocations: 0.8963 MB / 435.9 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.3129, allocations: 7.938 kB / 435.9 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002077/0.3131, allocations: 51.44 kB / 435.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003316/0.3134, allocations: 115.2 kB / 436.1 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004123/0.3138, allocations: 235.5 kB / 436.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006471/0.3145, allocations: 0.5295 MB / 436.8 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.3147, allocations: 87.09 kB / 436.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002378/0.3149, allocations: 203.3 kB / 437.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003366/0.3152, allocations: 219.1 kB / 437.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.337e-05/0.3153, allocations: 48 kB / 437.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.274e-05/0.3154, allocations: 48 kB / 437.4 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.3155, allocations: 99.66 kB / 437.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.3157, allocations: 203 kB / 437.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006096/0.3163, allocations: 0.4957 MB / 438.2 MB, free: 1.234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.367e-06/0.3163, allocations: 4 kB / 438.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3163, allocations: 0 / 438.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.3163, allocations: 0 / 438.2 MB, free: 1.23 MB / 334.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.001805/0.3181, allocations: 0.748 MB / 439 MB, free: 444 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.3182, allocations: 11.97 kB / 439 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.3183, allocations: 40.7 kB / 439 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005897/0.3189, allocations: 339.6 kB / 439.3 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.319, allocations: 72.53 kB / 439.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.804e-05/0.3191, allocations: 32.36 kB / 439.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004929/0.3196, allocations: 283.9 kB / 439.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.3196, allocations: 11.95 kB / 439.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.3196, allocations: 11.94 kB / 439.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.3196, allocations: 8 kB / 439.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003656/0.32, allocations: 165.2 kB / 439.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002907/0.3229, allocations: 1.469 MB / 441.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002782/0.3232, allocations: 101.2 kB / 441.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.3233, allocations: 53.75 kB / 441.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.3233, allocations: 0 / 441.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.3233, allocations: 34.56 kB / 441.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.3233, allocations: 0 / 441.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003514/0.3268, allocations: 1.08 MB / 442.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.433e-05/0.3269, allocations: 110.8 kB / 442.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000392/0.3273, allocations: 320.5 kB / 443.1 MB, free: 12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/0.3274, allocations: 29.7 kB / 443.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.3275, allocations: 208.5 kB / 443.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.007e-05/0.3276, allocations: 59.52 kB / 443.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.3278, allocations: 73.66 kB / 443.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3279, allocations: 338.8 kB / 443.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003568/0.3283, allocations: 156 kB / 443.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000427/0.3287, allocations: 248.4 kB / 444.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007371/0.3295, allocations: 354.1 kB / 444.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.3295, allocations: 3.938 kB / 444.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009322/0.3388, allocations: 1.31 MB / 445.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/0.3388, allocations: 8 kB / 445.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.3388, allocations: 0 / 445.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01064/0.3495, allocations: 1.149 MB / 447 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004601/0.3499, allocations: 75.88 kB / 447 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01176/0.3617, allocations: 5.341 MB / 452.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000609/0.3623, allocations: 43.91 kB / 452.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.068e-05/0.3624, allocations: 23.98 kB / 452.4 MB, free: 2.211 MB / 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.0002628/0.3626, allocations: 141.8 kB / 452.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.3628, allocations: 31.81 kB / 452.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.19e-05/0.3628, allocations: 30.55 kB / 452.6 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3628, allocations: 0 / 452.6 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3628, allocations: 4 kB / 452.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.3628, allocations: 3.938 kB / 452.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.3641, allocations: 0.7513 MB / 453.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3642, allocations: 0 / 453.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003616/0.3645, allocations: 47.94 kB / 453.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.3645, allocations: 0 / 453.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.3645, allocations: 7.922 kB / 453.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.3645, allocations: 4 kB / 453.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3645, allocations: 4 kB / 453.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008929/0.3654, allocations: 0.5255 MB / 454 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.3655, allocations: 101 kB / 454.1 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.056e-05/0.3656, allocations: 12 kB / 454.1 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003969/0.366, allocations: 27.97 kB / 454.1 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.463e-05/0.3661, allocations: 11.97 kB / 454.1 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.3661, allocations: 11.98 kB / 454.2 MB, free: 412 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002524/0.3663, allocations: 219.1 kB / 454.4 MB, free: 196 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3663, allocations: 4 kB / 454.4 MB, free: 192 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005595/0.3669, allocations: 100 kB / 454.5 MB, free: 92 kB / 350.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.0001584/0.3671, allocations: 107.2 kB / 454.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.3692, allocations: 0.7238 MB / 455.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.3692, allocations: 0 / 455.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.3695, allocations: 91.88 kB / 455.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005858/0.37, allocations: 80.22 kB / 455.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.3715, allocations: 0.6393 MB / 456.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004427/0.3719, allocations: 0.7794 MB / 456.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.3721, allocations: 35.39 kB / 456.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3721, allocations: 0 / 456.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of Templates: time 0.01048/0.3825, allocations: 6.726 MB / 463.6 MB, free: 6.844 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.601946929935366] Failed to read output from testmodel.py, exit status != 0: 0.3929522060789168 0.405315792 0.086045198 Calling exit ...