Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.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.00155/0.00155, allocations: 112.2 kB / 21.19 MB, free: 0.7812 MB / 14.72 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.001694/0.001694, allocations: 214.5 kB / 24.49 MB, free: 4.18 MB / 14.72 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.407/1.407, allocations: 230.6 MB / 258.3 MB, free: 8 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+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(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 51.92 kB / 379.1 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2235, allocations: 53.36 MB / 432.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004481/0.228, allocations: 2.924 MB / 435.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.2297, allocations: 0.9001 MB / 436.2 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002437/0.23, allocations: 11.94 kB / 436.2 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.2302, allocations: 55.44 kB / 436.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00038/0.2306, allocations: 119.2 kB / 436.4 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004403/0.231, allocations: 223.6 kB / 436.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000696/0.2317, allocations: 0.5452 MB / 437.2 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.2319, allocations: 75.58 kB / 437.3 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002871/0.2322, allocations: 203.3 kB / 437.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003736/0.2325, allocations: 223.1 kB / 437.7 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.384e-05/0.2326, allocations: 48 kB / 437.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.211e-05/0.2327, allocations: 48 kB / 437.8 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.969e-05/0.2328, allocations: 111.5 kB / 437.9 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.233, allocations: 199 kB / 438.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005605/0.2336, allocations: 0.4916 MB / 438.6 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2336, allocations: 0 / 438.6 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2336, allocations: 0 / 438.6 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.2336, allocations: 4 kB / 438.6 MB, free: 0.7695 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.001772/0.2354, allocations: 0.6803 MB / 439.2 MB, free: 60 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.2354, allocations: 12.03 kB / 439.3 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.594e-05/0.2355, allocations: 40.7 kB / 439.3 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005307/0.2361, allocations: 269.4 kB / 439.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.2362, allocations: 135.8 kB / 439.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.221e-05/0.2363, allocations: 32.33 kB / 439.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000491/0.2368, allocations: 287.1 kB / 440 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.2368, allocations: 0 / 440 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.2368, allocations: 12 kB / 440 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.2368, allocations: 4 kB / 440 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003729/0.2372, allocations: 170.1 kB / 440.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002966/0.2402, allocations: 1.418 MB / 441.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002312/0.2404, allocations: 101.2 kB / 441.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.2405, allocations: 53.75 kB / 441.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.2405, allocations: 4 kB / 441.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.2405, allocations: 34.56 kB / 441.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.2405, allocations: 4 kB / 441.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003166/0.2437, allocations: 0.9219 MB / 442.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.927e-05/0.2438, allocations: 106.8 kB / 442.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003821/0.2442, allocations: 328.5 kB / 443.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.932e-05/0.2442, allocations: 33.7 kB / 443.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.2444, allocations: 208.4 kB / 443.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.018e-05/0.2444, allocations: 51.58 kB / 443.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.2446, allocations: 69.66 kB / 443.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.2447, allocations: 342.8 kB / 443.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003562/0.2451, allocations: 155.9 kB / 444 MB, free: 11.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004183/0.2455, allocations: 246.9 kB / 444.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006714/0.2462, allocations: 358 kB / 444.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2462, allocations: 0 / 444.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009705/0.2559, allocations: 1.306 MB / 445.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.2559, allocations: 4 kB / 445.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.2559, allocations: 8.062 kB / 445.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01136/0.2673, allocations: 1.157 MB / 447.1 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004649/0.2677, allocations: 67.88 kB / 447.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01165/0.2794, allocations: 5.134 MB / 452.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006251/0.28, allocations: 47.84 kB / 452.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-05/0.2801, allocations: 19.97 kB / 452.3 MB, free: 2.355 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.0002147/0.2803, allocations: 142 kB / 452.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.2804, allocations: 31.84 kB / 452.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.706e-05/0.2805, allocations: 34.55 kB / 452.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.2805, allocations: 4 kB / 452.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.2805, allocations: 4 kB / 452.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.2805, allocations: 7.938 kB / 452.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.2817, allocations: 0.7231 MB / 453.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.2817, allocations: 0 / 453.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.2821, allocations: 47.94 kB / 453.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.2821, allocations: 3.938 kB / 453.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.2821, allocations: 11.92 kB / 453.3 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2821, allocations: 4 kB / 453.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2821, allocations: 0 / 453.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008712/0.283, allocations: 0.5141 MB / 453.8 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.394e-05/0.283, allocations: 35.98 kB / 453.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.003e-05/0.2831, allocations: 7.922 kB / 453.9 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004174/0.2835, allocations: 27.97 kB / 453.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.65e-05/0.2836, allocations: 11.97 kB / 453.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.2836, allocations: 11.98 kB / 453.9 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002643/0.2839, allocations: 223.1 kB / 454.2 MB, free: 456 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2839, allocations: 0 / 454.2 MB, free: 456 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005562/0.2844, allocations: 104 kB / 454.3 MB, free: 352 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.0001375/0.2845, allocations: 103.1 kB / 454.4 MB, free: 236 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002105/0.2866, allocations: 0.7237 MB / 455.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.2867, allocations: 8 kB / 455.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002441/0.2869, allocations: 92.02 kB / 455.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005672/0.2875, allocations: 75.97 kB / 455.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.2889, allocations: 0.6348 MB / 455.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.2893, allocations: 0.7756 MB / 456.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.2894, allocations: 35.39 kB / 456.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2894, allocations: 0 / 456.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of Templates: time 0.01065/0.3001, allocations: 6.708 MB / 463.4 MB, free: 7.121 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.216065425891429] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 0.30896844901144505 0.32349656400000004 0.08687417500000001 Calling exit ...