Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001303/0.001303, allocations: 114 kB / 20.44 MB, free: 1.469 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.001416/0.001416, allocations: 214.5 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 71.88 kB / 377.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2576, allocations: 53.4 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.005182/0.2628, allocations: 2.925 MB / 434.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.2645, allocations: 0.8961 MB / 435 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.2647, allocations: 12 kB / 435 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002105/0.2649, allocations: 59.38 kB / 435.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003416/0.2652, allocations: 115.2 kB / 435.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.2657, allocations: 227.6 kB / 435.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005773/0.2662, allocations: 0.5374 MB / 436 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.2664, allocations: 75.58 kB / 436 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.2667, allocations: 211.3 kB / 436.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003212/0.267, allocations: 223.1 kB / 436.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.518e-05/0.2671, allocations: 48 kB / 436.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.799e-05/0.2671, allocations: 48 kB / 436.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.569e-05/0.2672, allocations: 103.6 kB / 436.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.2674, allocations: 195.1 kB / 436.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005555/0.268, allocations: 0.5023 MB / 437.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.268, allocations: 0 / 437.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.268, allocations: 0 / 437.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.268, allocations: 0 / 437.3 MB, free: 0.5234 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.001731/0.2697, allocations: 0.6727 MB / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.2698, allocations: 12.03 kB / 438 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.358e-05/0.2698, allocations: 62.67 kB / 438.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.4e-05/0.2699, allocations: 40.7 kB / 438.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/0.2704, allocations: 273.3 kB / 438.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001511/0.2706, allocations: 135.9 kB / 438.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.876e-05/0.2706, allocations: 28.38 kB / 438.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004683/0.2711, allocations: 282.9 kB / 438.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.2711, allocations: 7.953 kB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.2711, allocations: 12 kB / 438.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.2711, allocations: 4 kB / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003536/0.2715, allocations: 181.1 kB / 439 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002924/0.2744, allocations: 1.422 MB / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.2746, allocations: 101.2 kB / 440.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.2747, allocations: 53.81 kB / 440.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.2748, allocations: 4 kB / 440.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.498e-05/0.2748, allocations: 34.56 kB / 440.6 MB, free: 13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.2748, allocations: 0 / 440.6 MB, free: 13 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003152/0.278, allocations: 0.9211 MB / 441.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.272e-05/0.278, allocations: 106.8 kB / 441.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000378/0.2784, allocations: 324.5 kB / 442 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.2785, allocations: 29.7 kB / 442 MB, free: 11.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/0.2786, allocations: 216.4 kB / 442.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.942e-05/0.2787, allocations: 47.59 kB / 442.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.2788, allocations: 73.64 kB / 442.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.279, allocations: 338.8 kB / 442.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003535/0.2794, allocations: 155.9 kB / 442.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004187/0.2798, allocations: 255.8 kB / 443.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007086/0.2805, allocations: 353.7 kB / 443.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.2805, allocations: 4 kB / 443.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009918/0.2904, allocations: 1.302 MB / 444.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.2905, allocations: 4 kB / 444.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.2905, allocations: 7.938 kB / 444.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01164/0.3021, allocations: 1.153 MB / 445.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004729/0.3026, allocations: 75.86 kB / 446 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01156/0.3141, allocations: 5.142 MB / 451.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006004/0.3147, allocations: 39.92 kB / 451.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.261e-05/0.3148, allocations: 19.95 kB / 451.2 MB, free: 2.035 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.0002185/0.315, allocations: 149.7 kB / 451.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.022e-05/0.3151, allocations: 27.81 kB / 451.3 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.463e-05/0.3151, allocations: 30.61 kB / 451.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.3151, allocations: 4 kB / 451.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.3151, allocations: 0 / 451.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.3151, allocations: 3.938 kB / 451.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.3163, allocations: 0.723 MB / 452.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3163, allocations: 0 / 452.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003866/0.3167, allocations: 51.94 kB / 452.2 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.3167, allocations: 3.938 kB / 452.2 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.346e-05/0.3167, allocations: 7.984 kB / 452.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3167, allocations: 0 / 452.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3167, allocations: 4 kB / 452.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008519/0.3176, allocations: 0.5219 MB / 452.7 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.781e-05/0.3176, allocations: 27.84 kB / 452.7 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.355e-05/0.3177, allocations: 8 kB / 452.7 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004173/0.3181, allocations: 31.97 kB / 452.8 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.078e-05/0.3181, allocations: 12.06 kB / 452.8 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.3182, allocations: 7.922 kB / 452.8 MB, free: 356 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002545/0.3184, allocations: 227.1 kB / 453 MB, free: 132 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3184, allocations: 0 / 453 MB, free: 132 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005482/0.319, allocations: 100 kB / 453.1 MB, free: 32 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.001211/0.3202, allocations: 1.063 MB / 454.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002082/0.3223, allocations: 0.7354 MB / 454.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3223, allocations: 0 / 454.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002412/0.3225, allocations: 95.88 kB / 455 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005664/0.3231, allocations: 70.22 kB / 455.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02311/0.3462, allocations: 5.199 MB / 460.3 MB, free: 8.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.3466, allocations: 0.7756 MB / 461 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002246/0.3468, allocations: 30.52 kB / 461.1 MB, free: 7.828 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002037/0.3471, allocations: 111.4 kB / 461.2 MB, free: 7.719 MB / 366.1 MB Notification: Performance of SimCode: time 1.483e-06/0.3471, allocations: 0 / 461.2 MB, free: 7.719 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04644/0.3935, allocations: 11.9 MB / 473.1 MB, free: 11.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.08, allocations: 7.094 kB / 473.1 MB, free: 11.94 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-07 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.512370026997814] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 13.20257896199837 13.224792718 12.952690191 Calling exit ...