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.001295/0.001295, allocations: 108.5 kB / 19.8 MB, free: 2.5 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.001405/0.001405, allocations: 217 kB / 23 MB, free: 5.582 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.414/1.414, allocations: 230.5 MB / 256.5 MB, free: 8.242 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [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.001851/0.001851, allocations: 59.91 kB / 376.2 MB, free: 3.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2325, allocations: 53.32 MB / 429.5 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004486/0.237, allocations: 2.929 MB / 432.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.2387, allocations: 0.8885 MB / 433.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.2389, allocations: 7.938 kB / 433.4 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001936/0.2391, allocations: 51.44 kB / 433.4 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003255/0.2394, allocations: 123.1 kB / 433.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.2398, allocations: 239.5 kB / 433.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006116/0.2404, allocations: 0.5296 MB / 434.3 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.2406, allocations: 79.11 kB / 434.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.2409, allocations: 203.3 kB / 434.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003423/0.2412, allocations: 219.2 kB / 434.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.088e-05/0.2413, allocations: 47.98 kB / 434.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.046e-05/0.2414, allocations: 48 kB / 434.9 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.2415, allocations: 103.6 kB / 435 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.2417, allocations: 211 kB / 435.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005703/0.2423, allocations: 0.4946 MB / 435.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2423, allocations: 0 / 435.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2423, allocations: 0 / 435.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.2423, allocations: 0 / 435.7 MB, free: 1.223 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.001648/0.2439, allocations: 0.7441 MB / 436.4 MB, free: 440 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.244, allocations: 8.031 kB / 436.4 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.691e-05/0.244, allocations: 62.73 kB / 436.5 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.691e-05/0.2441, allocations: 44.64 kB / 436.5 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005598/0.2447, allocations: 335.6 kB / 436.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.2448, allocations: 80.52 kB / 437 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.465e-05/0.2449, allocations: 24.38 kB / 437 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005227/0.2454, allocations: 291.7 kB / 437.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.2454, allocations: 3.953 kB / 437.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.2454, allocations: 8 kB / 437.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.2454, allocations: 8 kB / 437.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003868/0.2458, allocations: 173.2 kB / 437.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002933/0.2488, allocations: 1.465 MB / 438.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.249, allocations: 105.2 kB / 439 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.2491, allocations: 49.83 kB / 439.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.2491, allocations: 4 kB / 439.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.2492, allocations: 38.55 kB / 439.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.903e-06/0.2492, allocations: 0 / 439.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003284/0.2525, allocations: 1.072 MB / 440.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.474e-05/0.2525, allocations: 110.8 kB / 440.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000418/0.253, allocations: 328.4 kB / 440.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.219e-05/0.253, allocations: 29.7 kB / 440.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.2532, allocations: 212.3 kB / 440.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.438e-05/0.2532, allocations: 55.58 kB / 440.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.2534, allocations: 69.66 kB / 441 MB, free: 11.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002215/0.2536, allocations: 334.8 kB / 441.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004392/0.2541, allocations: 163.9 kB / 441.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/0.2545, allocations: 244.4 kB / 441.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007059/0.2552, allocations: 354 kB / 442 MB, free: 10.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2552, allocations: 0 / 442 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009102/0.2643, allocations: 1.31 MB / 443.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.2643, allocations: 8 kB / 443.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.2643, allocations: 0 / 443.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01076/0.2751, allocations: 1.154 MB / 444.5 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004595/0.2755, allocations: 63.88 kB / 444.6 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01146/0.287, allocations: 5.346 MB / 449.9 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005545/0.2876, allocations: 39.91 kB / 450 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.22e-05/0.2876, allocations: 15.98 kB / 450 MB, free: 2.156 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.0002077/0.2878, allocations: 145.8 kB / 450.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.371e-05/0.2879, allocations: 31.81 kB / 450.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.796e-05/0.2879, allocations: 30.61 kB / 450.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2879, allocations: 7.938 kB / 450.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.2879, allocations: 0 / 450.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.288, allocations: 3.938 kB / 450.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001243/0.2892, allocations: 0.7474 MB / 450.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2892, allocations: 4 kB / 450.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004423/0.2896, allocations: 51.94 kB / 451 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.2896, allocations: 3.938 kB / 451 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.2897, allocations: 8.109 kB / 451 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.2897, allocations: 4 kB / 451 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2897, allocations: 0 / 451 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008765/0.2906, allocations: 0.522 MB / 451.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.394e-05/0.2906, allocations: 108.9 kB / 451.6 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.063e-05/0.2907, allocations: 3.938 kB / 451.6 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003886/0.2911, allocations: 27.97 kB / 451.7 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.371e-05/0.2911, allocations: 20.03 kB / 451.7 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.2912, allocations: 3.984 kB / 451.7 MB, free: 344 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002394/0.2914, allocations: 223.1 kB / 451.9 MB, free: 124 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2914, allocations: 0 / 451.9 MB, free: 124 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005059/0.2919, allocations: 100 kB / 452 MB, free: 24 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.001241/0.2931, allocations: 1.065 MB / 453.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.2952, allocations: 0.7355 MB / 453.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.2952, allocations: 0 / 453.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000265/0.2954, allocations: 104.1 kB / 453.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005543/0.296, allocations: 69.28 kB / 454 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0216/0.3176, allocations: 5.205 MB / 459.2 MB, free: 8.645 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005014/0.3181, allocations: 0.7756 MB / 460 MB, free: 7.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002225/0.3183, allocations: 30.28 kB / 460 MB, free: 7.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001964/0.3185, allocations: 107.4 kB / 460.1 MB, free: 7.703 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3185, allocations: 0 / 460.1 MB, free: 7.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0435/0.362, allocations: 11.73 MB / 471.8 MB, free: 12.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.04, allocations: 8.062 kB / 471.8 MB, free: 12.1 MB / 382.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.221293002017774] Failed to read output from testmodel.py, exit status != 0: 12.131904918001965 12.152177435 11.904755841 Calling exit ...