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.007903/0.007903, allocations: 105.9 kB / 21.98 MB, free: 5.223 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.001979/0.001979, allocations: 216.4 kB / 25.29 MB, free: 3.203 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.463/1.463, allocations: 230.6 MB / 259 MB, free: 8.016 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="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_4.1.0-beta.om_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-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.001996/0.001996, allocations: 63.89 kB / 379.8 MB, free: 2.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2463, allocations: 53.37 MB / 433.2 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004576/0.2509, allocations: 2.919 MB / 436.1 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.2526, allocations: 0.8961 MB / 437 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.2528, allocations: 8 kB / 437 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.253, allocations: 55.44 kB / 437.1 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003243/0.2533, allocations: 127.1 kB / 437.2 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004151/0.2537, allocations: 223.6 kB / 437.4 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006395/0.2544, allocations: 0.5412 MB / 438 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.2546, allocations: 79.58 kB / 438 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002517/0.2548, allocations: 199.4 kB / 438.2 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003481/0.2552, allocations: 223.1 kB / 438.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.455e-05/0.2552, allocations: 48 kB / 438.5 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.324e-05/0.2553, allocations: 48 kB / 438.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.2554, allocations: 107.6 kB / 438.6 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002014/0.2556, allocations: 199.1 kB / 438.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005861/0.2562, allocations: 0.4992 MB / 439.3 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2562, allocations: 0 / 439.3 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2562, allocations: 0 / 439.3 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.2562, allocations: 0 / 439.3 MB, free: 0.7578 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.001705/0.2579, allocations: 0.6687 MB / 440 MB, free: 60 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.258, allocations: 16.03 kB / 440 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.104e-05/0.2581, allocations: 40.7 kB / 440.1 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005451/0.2586, allocations: 277.2 kB / 440.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.2587, allocations: 84.45 kB / 440.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.557e-05/0.2588, allocations: 24.38 kB / 440.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005051/0.2593, allocations: 291.1 kB / 440.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.2593, allocations: 3.953 kB / 440.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.2593, allocations: 12 kB / 440.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.2594, allocations: 7.984 kB / 440.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003689/0.2597, allocations: 162.2 kB / 440.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002987/0.2627, allocations: 1.43 MB / 442.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.2629, allocations: 93.25 kB / 442.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.2631, allocations: 53.81 kB / 442.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.2631, allocations: 11.98 kB / 442.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.2631, allocations: 34.5 kB / 442.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.874e-06/0.2631, allocations: 0 / 442.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003367/0.2665, allocations: 0.9288 MB / 443.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.2666, allocations: 106.8 kB / 443.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004524/0.267, allocations: 324.4 kB / 443.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.2671, allocations: 33.7 kB / 443.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.2673, allocations: 208.4 kB / 444.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.2673, allocations: 47.59 kB / 444.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.2675, allocations: 73.66 kB / 444.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.2676, allocations: 338.8 kB / 444.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/0.268, allocations: 155.9 kB / 444.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000451/0.2685, allocations: 251.8 kB / 445 MB, free: 10.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007023/0.2692, allocations: 354 kB / 445.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2692, allocations: 0 / 445.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01003/0.2792, allocations: 1.317 MB / 446.6 MB, free: 9.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.2792, allocations: 4 kB / 446.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.2792, allocations: 4 kB / 446.6 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01145/0.2907, allocations: 1.157 MB / 447.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004856/0.2912, allocations: 64.88 kB / 447.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/0.3032, allocations: 5.136 MB / 453 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006066/0.3039, allocations: 39.91 kB / 453 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.26e-05/0.3039, allocations: 15.98 kB / 453 MB, free: 2.406 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.0002153/0.3041, allocations: 145.8 kB / 453.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.76e-05/0.3042, allocations: 31.81 kB / 453.2 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.901e-05/0.3042, allocations: 26.61 kB / 453.2 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3042, allocations: 96 / 453.2 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.3043, allocations: 7.938 kB / 453.2 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.3043, allocations: 7.922 kB / 453.2 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.3055, allocations: 0.7191 MB / 454 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3055, allocations: 7.938 kB / 454 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003746/0.3058, allocations: 47.94 kB / 454 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.3058, allocations: 0 / 454 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.3059, allocations: 11.92 kB / 454 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3059, allocations: 4 kB / 454 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3059, allocations: 4.062 kB / 454 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008917/0.3068, allocations: 0.5208 MB / 454.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.585e-05/0.3068, allocations: 31.92 kB / 454.6 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.893e-05/0.3069, allocations: 7.938 kB / 454.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004123/0.3073, allocations: 23.97 kB / 454.6 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.19e-05/0.3074, allocations: 20.03 kB / 454.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.3074, allocations: 7.984 kB / 454.7 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002587/0.3076, allocations: 223.1 kB / 454.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3076, allocations: 4 kB / 454.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005439/0.3082, allocations: 96 kB / 455 MB, free: 408 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.0001497/0.3083, allocations: 107.2 kB / 455.1 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002121/0.3105, allocations: 0.7276 MB / 455.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.3105, allocations: 4.25 kB / 455.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002572/0.3107, allocations: 95.86 kB / 455.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005772/0.3113, allocations: 71.62 kB / 456 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.3127, allocations: 0.6357 MB / 456.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.3132, allocations: 0.7717 MB / 457.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.3133, allocations: 43.39 kB / 457.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3133, allocations: 0 / 457.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of Templates: time 0.01035/0.3237, allocations: 6.702 MB / 464.1 MB, free: 7.176 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 -emit_protected -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.708101385971531] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 0.3325802949257195 0.347101438 0.08776475899999994 Calling exit ...