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.001271/0.001271, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001461/0.001461, allocations: 208 kB / 24.52 MB, free: 4.07 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.448/1.448, allocations: 230.5 MB / 258.2 MB, free: 7.988 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 59.91 kB / 378.6 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2383, allocations: 53.4 MB / 432 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004237/0.2426, allocations: 2.929 MB / 434.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.2442, allocations: 0.8962 MB / 435.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.2443, allocations: 4 kB / 435.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.2445, allocations: 63.38 kB / 435.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.2448, allocations: 119.2 kB / 436 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003673/0.2452, allocations: 231.6 kB / 436.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005716/0.2457, allocations: 0.5334 MB / 436.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002051/0.2459, allocations: 79.38 kB / 436.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002465/0.2462, allocations: 211.3 kB / 437 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000329/0.2465, allocations: 219.2 kB / 437.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.76e-05/0.2466, allocations: 48 kB / 437.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.624e-05/0.2467, allocations: 48 kB / 437.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.2468, allocations: 111.6 kB / 437.5 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.247, allocations: 199.1 kB / 437.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005905/0.2476, allocations: 0.4912 MB / 438.1 MB, free: 496 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2476, allocations: 4 kB / 438.1 MB, free: 492 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2476, allocations: 0 / 438.1 MB, free: 492 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.2476, allocations: 0 / 438.1 MB, free: 492 kB / 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.00178/0.2494, allocations: 0.6727 MB / 438.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.2494, allocations: 8.031 kB / 438.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.369e-05/0.2495, allocations: 12.62 kB / 438.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.181e-05/0.2495, allocations: 58.73 kB / 438.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.795e-05/0.2496, allocations: 44.64 kB / 438.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005503/0.2502, allocations: 269.4 kB / 439.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001625/0.2503, allocations: 131.9 kB / 439.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.541e-05/0.2504, allocations: 32.12 kB / 439.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004801/0.2509, allocations: 278.9 kB / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.2509, allocations: 7.953 kB / 439.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.2509, allocations: 12 kB / 439.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.2509, allocations: 4 kB / 439.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003788/0.2513, allocations: 181.1 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002878/0.2542, allocations: 1.422 MB / 441.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.2544, allocations: 105.2 kB / 441.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.2545, allocations: 49.81 kB / 441.4 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.2545, allocations: 4 kB / 441.4 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.2546, allocations: 34.56 kB / 441.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.784e-06/0.2546, allocations: 0 / 441.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003152/0.2577, allocations: 0.9258 MB / 442.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.329e-05/0.2578, allocations: 102.8 kB / 442.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003717/0.2582, allocations: 324.5 kB / 442.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/0.2582, allocations: 33.7 kB / 442.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.2584, allocations: 212.4 kB / 443 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.156e-05/0.2584, allocations: 51.58 kB / 443.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.2586, allocations: 73.59 kB / 443.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.2587, allocations: 338.8 kB / 443.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003757/0.2591, allocations: 155.9 kB / 443.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004305/0.2595, allocations: 251.8 kB / 443.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007366/0.2603, allocations: 357.2 kB / 444.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2603, allocations: 0 / 444.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009545/0.2698, allocations: 1.306 MB / 445.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.2698, allocations: 4 kB / 445.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.2699, allocations: 4.062 kB / 445.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01121/0.2811, allocations: 1.157 MB / 446.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004808/0.2816, allocations: 79.84 kB / 446.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/0.2934, allocations: 5.131 MB / 451.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000598/0.294, allocations: 39.97 kB / 451.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/0.294, allocations: 15.98 kB / 452 MB, free: 1.992 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.0002393/0.2942, allocations: 145.7 kB / 452.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.2943, allocations: 28 kB / 452.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.338e-05/0.2944, allocations: 30.61 kB / 452.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2944, allocations: 3.938 kB / 452.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.2944, allocations: 11.94 kB / 452.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.2944, allocations: 3.984 kB / 452.2 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001264/0.2957, allocations: 0.7193 MB / 452.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2957, allocations: 0 / 452.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003889/0.2961, allocations: 51.92 kB / 453 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.2961, allocations: 3.938 kB / 453 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.2961, allocations: 3.984 kB / 453 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2961, allocations: 4 kB / 453 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2961, allocations: 4 kB / 453 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009315/0.297, allocations: 0.5207 MB / 453.5 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.229e-05/0.2971, allocations: 31.78 kB / 453.5 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.177e-05/0.2971, allocations: 8.047 kB / 453.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.2975, allocations: 23.98 kB / 453.5 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.412e-05/0.2976, allocations: 12.06 kB / 453.6 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.2976, allocations: 15.92 kB / 453.6 MB, free: 308 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002561/0.2979, allocations: 223.1 kB / 453.8 MB, free: 88 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2979, allocations: 0 / 453.8 MB, free: 88 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006117/0.2985, allocations: 100 kB / 453.9 MB, free: 15.98 MB / 366.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.001265/0.2998, allocations: 1.063 MB / 455 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002206/0.302, allocations: 0.7311 MB / 455.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.302, allocations: 0 / 455.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002655/0.3022, allocations: 95.88 kB / 455.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006354/0.3029, allocations: 79.38 kB / 455.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02284/0.3257, allocations: 5.199 MB / 461.1 MB, free: 8.613 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005893/0.3263, allocations: 0.7756 MB / 461.8 MB, free: 7.809 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.3265, allocations: 30.27 kB / 461.9 MB, free: 7.781 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002325/0.3267, allocations: 115.4 kB / 462 MB, free: 7.668 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3267, allocations: 0 / 462 MB, free: 7.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04095/0.3677, allocations: 11.93 MB / 473.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.31, allocations: 0 / 473.9 MB, free: 11.88 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --stepSize=1e-07 --timeout=50 --tolerance=1e-06 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.75987324398011] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 13.491088873008266 13.506737015 13.25600323 Calling exit ...