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.00143/0.00143, allocations: 114 kB / 20.43 MB, free: 1.457 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.001556/0.001556, allocations: 214.7 kB / 23.75 MB, free: 4.672 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.425/1.425, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.002004/0.002004, allocations: 55.91 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2469, allocations: 53.42 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004254/0.2511, allocations: 2.917 MB / 434.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.2527, allocations: 0.8962 MB / 435 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000158/0.2529, allocations: 15.94 kB / 435 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.253, allocations: 55.44 kB / 435.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002925/0.2533, allocations: 119.1 kB / 435.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000363/0.2537, allocations: 231.5 kB / 435.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005718/0.2543, allocations: 0.5374 MB / 436 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.2545, allocations: 75.58 kB / 436 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.2547, allocations: 207.3 kB / 436.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.255, allocations: 223.1 kB / 436.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.963e-05/0.2551, allocations: 51.94 kB / 436.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.904e-05/0.2552, allocations: 48 kB / 436.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.568e-05/0.2553, allocations: 103.6 kB / 436.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001908/0.2554, allocations: 199 kB / 436.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005774/0.256, allocations: 0.4946 MB / 437.3 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.256, allocations: 0 / 437.3 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.256, allocations: 0 / 437.3 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.256, allocations: 0 / 437.3 MB, free: 0.5156 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.2578, allocations: 0.6842 MB / 438 MB, free: 15.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.2579, allocations: 12.03 kB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.431e-05/0.2579, allocations: 58.73 kB / 438.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.455e-05/0.258, allocations: 40.7 kB / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.2585, allocations: 265.4 kB / 438.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.2587, allocations: 135.9 kB / 438.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/0.2587, allocations: 36.31 kB / 438.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004618/0.2592, allocations: 274.9 kB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.2592, allocations: 11.89 kB / 438.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.2593, allocations: 12 kB / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.467e-06/0.2593, allocations: 7.984 kB / 438.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003718/0.2596, allocations: 173.2 kB / 439 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002817/0.2625, allocations: 1.422 MB / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.2627, allocations: 101.2 kB / 440.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.2628, allocations: 53.81 kB / 440.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.2628, allocations: 0 / 440.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.2628, allocations: 34.56 kB / 440.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.2628, allocations: 0 / 440.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003078/0.2659, allocations: 0.9249 MB / 441.6 MB, free: 12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.788e-05/0.266, allocations: 118.7 kB / 441.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003634/0.2664, allocations: 320.5 kB / 442 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.179e-05/0.2664, allocations: 29.7 kB / 442 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.2666, allocations: 208.4 kB / 442.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.538e-05/0.2666, allocations: 59.5 kB / 442.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.2668, allocations: 69.66 kB / 442.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.2669, allocations: 338.8 kB / 442.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003482/0.2673, allocations: 155.9 kB / 442.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004213/0.2677, allocations: 252.8 kB / 443.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006492/0.2683, allocations: 357.4 kB / 443.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2684, allocations: 4 kB / 443.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009571/0.2779, allocations: 1.299 MB / 444.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.2779, allocations: 6.5 kB / 444.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.278, allocations: 4 kB / 444.7 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01137/0.2893, allocations: 1.157 MB / 445.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004479/0.2898, allocations: 75.86 kB / 446 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01153/0.3013, allocations: 5.138 MB / 451.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005924/0.3019, allocations: 43.91 kB / 451.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.3019, allocations: 15.98 kB / 451.2 MB, free: 2.027 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.0002031/0.3021, allocations: 149.7 kB / 451.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.272e-05/0.3022, allocations: 27.81 kB / 451.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.879e-05/0.3023, allocations: 30.61 kB / 451.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.3023, allocations: 4 kB / 451.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.3023, allocations: 0 / 451.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/0.3023, allocations: 8.109 kB / 451.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.3034, allocations: 0.7231 MB / 452.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.3034, allocations: 0 / 452.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.3038, allocations: 47.94 kB / 452.2 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.3038, allocations: 3.938 kB / 452.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.3038, allocations: 11.92 kB / 452.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3038, allocations: 0 / 452.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3038, allocations: 4 kB / 452.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000876/0.3047, allocations: 0.5141 MB / 452.7 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.981e-05/0.3048, allocations: 27.84 kB / 452.7 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.676e-05/0.3048, allocations: 11.98 kB / 452.7 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.3052, allocations: 27.98 kB / 452.8 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.716e-05/0.3053, allocations: 11.97 kB / 452.8 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.3053, allocations: 7.984 kB / 452.8 MB, free: 352 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002398/0.3056, allocations: 223.1 kB / 453 MB, free: 132 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3056, allocations: 0 / 453 MB, free: 132 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005441/0.3061, allocations: 103.9 kB / 453.1 MB, free: 28 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.001328/0.3074, allocations: 1.063 MB / 454.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.3096, allocations: 0.7314 MB / 454.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3096, allocations: 0 / 454.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.3098, 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.0006036/0.3104, allocations: 84.39 kB / 455.1 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02315/0.3336, allocations: 5.195 MB / 460.3 MB, free: 8.648 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.334, allocations: 0.7717 MB / 461 MB, free: 7.848 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002148/0.3342, allocations: 34.27 kB / 461.1 MB, free: 7.816 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.3344, allocations: 107.4 kB / 461.2 MB, free: 7.711 MB / 366.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3344, allocations: 0 / 461.2 MB, free: 7.711 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05236/0.3868, allocations: 11.9 MB / 473.1 MB, free: 11.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.25, allocations: 7.609 kB / 473.1 MB, free: 11.93 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.55096830194816] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 13.372139316052198 13.389349048 13.13008453 Calling exit ...