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.001369/0.001369, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.001507/0.001507, allocations: 217.3 kB / 24.47 MB, free: 4.359 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.466/1.466, allocations: 230.4 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.002064/0.002064, allocations: 67.83 kB / 378.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3325, allocations: 53.32 MB / 432.1 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.005745/0.3383, allocations: 2.928 MB / 435 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.3405, allocations: 0.8923 MB / 435.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004263/0.341, allocations: 4 kB / 435.9 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003255/0.3413, allocations: 55.44 kB / 435.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005305/0.3418, allocations: 131.1 kB / 436.1 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000557/0.3424, allocations: 215.7 kB / 436.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008494/0.3432, allocations: 0.5412 MB / 436.8 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002442/0.3435, allocations: 79.09 kB / 436.9 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003359/0.3438, allocations: 199.3 kB / 437.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003737/0.3442, allocations: 223.1 kB / 437.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.67e-05/0.3443, allocations: 44 kB / 437.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.742e-05/0.3443, allocations: 48 kB / 437.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.3444, allocations: 107.7 kB / 437.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002482/0.3447, allocations: 199 kB / 437.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006467/0.3453, allocations: 0.4957 MB / 438.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3453, allocations: 0 / 438.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3453, allocations: 0 / 438.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.3454, allocations: 0 / 438.2 MB, free: 1.254 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.001835/0.3472, allocations: 0.7596 MB / 439 MB, free: 456 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.3472, allocations: 8.031 kB / 439 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.3473, allocations: 44.7 kB / 439 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005433/0.3479, allocations: 327.6 kB / 439.3 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.348, allocations: 80.47 kB / 439.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.645e-05/0.3481, allocations: 32.36 kB / 439.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004821/0.3486, allocations: 283.9 kB / 439.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.3486, allocations: 11.83 kB / 439.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.3486, allocations: 15.94 kB / 439.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.3486, allocations: 8 kB / 439.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003601/0.349, allocations: 165.3 kB / 439.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002955/0.352, allocations: 1.469 MB / 441.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002237/0.3522, allocations: 101.2 kB / 441.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.3523, allocations: 49.81 kB / 441.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.3523, allocations: 8 kB / 441.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.3523, allocations: 34.56 kB / 441.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.703e-06/0.3524, allocations: 0 / 441.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003364/0.3557, allocations: 1.079 MB / 442.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.722e-05/0.3558, allocations: 110.7 kB / 442.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004015/0.3562, allocations: 324.5 kB / 443.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.25e-05/0.3562, allocations: 33.7 kB / 443.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.3564, allocations: 200.5 kB / 443.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.024e-05/0.3565, allocations: 51.53 kB / 443.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.3566, allocations: 73.66 kB / 443.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.3568, allocations: 342.8 kB / 443.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000356/0.3572, allocations: 151.9 kB / 443.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004297/0.3576, allocations: 248.4 kB / 444.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007126/0.3583, allocations: 358 kB / 444.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3583, allocations: 0 / 444.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009619/0.3679, allocations: 1.31 MB / 445.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.3679, allocations: 8 kB / 445.8 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.368, allocations: 4 kB / 445.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01103/0.379, allocations: 1.154 MB / 447 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005072/0.3795, allocations: 63.88 kB / 447 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/0.391, allocations: 5.346 MB / 452.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006157/0.3916, allocations: 31.92 kB / 452.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.339e-05/0.3917, allocations: 23.97 kB / 452.4 MB, free: 2.238 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.0002306/0.3919, allocations: 141.8 kB / 452.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.717e-05/0.392, allocations: 35.81 kB / 452.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.002e-05/0.392, allocations: 22.61 kB / 452.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3921, allocations: 4 kB / 452.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3921, allocations: 0 / 452.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3921, allocations: 3.938 kB / 452.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.3933, allocations: 0.7474 MB / 453.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3933, allocations: 4 kB / 453.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003792/0.3937, allocations: 51.88 kB / 453.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.3937, allocations: 0 / 453.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.3937, allocations: 20.05 kB / 453.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3937, allocations: 0 / 453.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3937, allocations: 96 / 453.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000925/0.3946, allocations: 0.5219 MB / 454 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.16e-05/0.3947, allocations: 105 kB / 454.1 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.975e-05/0.3948, allocations: 11.88 kB / 454.1 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000395/0.3952, allocations: 27.97 kB / 454.1 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.013e-05/0.3952, allocations: 20.03 kB / 454.1 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.824e-05/0.3953, allocations: 7.984 kB / 454.2 MB, free: 428 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002468/0.3955, allocations: 227 kB / 454.4 MB, free: 204 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3955, allocations: 0 / 454.4 MB, free: 204 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005507/0.3961, allocations: 96 kB / 454.5 MB, free: 108 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.0001599/0.3962, allocations: 103.2 kB / 454.6 MB, free: 16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002241/0.3985, allocations: 0.734 MB / 455.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3985, allocations: 4.25 kB / 455.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002468/0.3987, allocations: 87.94 kB / 455.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000579/0.3993, allocations: 75.03 kB / 455.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.4007, allocations: 0.6155 MB / 456.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.4012, allocations: 0.7794 MB / 456.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.4013, allocations: 34.58 kB / 456.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.4014, allocations: 31.41 kB / 456.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4014, allocations: 0 / 456.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of Templates: time 0.01514/0.4166, allocations: 8.879 MB / 465.8 MB, free: 4.719 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 -s cvode -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.008635128848255] Failed to read output from testmodel.py, exit status != 0: 0.42553029023110867 0.43965470900000003 0.09118839200000001 Calling exit ...