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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008889/0.000889, allocations: 95.03 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001122/0.001122, allocations: 201.1 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.188/1.188, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001872/0.0001872, allocations: 7.984 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07471/0.07491, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002596/0.07754, allocations: 2.555 MB / 361.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.07889, allocations: 0.8808 MB / 362.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.07906, allocations: 8 kB / 362.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.07921, allocations: 31.7 kB / 362.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002822/0.0795, allocations: 107.3 kB / 362.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003165/0.07982, allocations: 199.8 kB / 363.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00045/0.08028, allocations: 0.5061 MB / 363.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.08047, allocations: 96.73 kB / 363.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.08069, allocations: 163.3 kB / 363.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002488/0.08095, allocations: 195 kB / 364.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.891e-05/0.081, allocations: 20 kB / 364.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.689e-05/0.08105, allocations: 20 kB / 364.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.05e-05/0.08113, allocations: 83.58 kB / 364.2 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.08129, allocations: 192.8 kB / 364.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003634/0.08166, allocations: 458.6 kB / 364.8 MB, free: 7.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.08167, allocations: 4 kB / 364.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.08168, allocations: 0 / 364.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.08169, allocations: 0 / 364.8 MB, free: 7.668 MB / 302.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.001466/0.08316, allocations: 0.6936 MB / 365.5 MB, free: 6.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.08321, allocations: 12.03 kB / 365.6 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.464e-05/0.08329, allocations: 58.73 kB / 365.6 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.141e-05/0.08339, allocations: 36.56 kB / 365.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.08379, allocations: 327.3 kB / 366 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.08391, allocations: 80.53 kB / 366 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.465e-05/0.08398, allocations: 28.38 kB / 366.1 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004437/0.08443, allocations: 291.7 kB / 366.4 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.08445, allocations: 3.938 kB / 366.4 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.08448, allocations: 15.98 kB / 366.4 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.0845, allocations: 4 kB / 366.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003622/0.08486, allocations: 169.3 kB / 366.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.08757, allocations: 1.48 MB / 368 MB, free: 4.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.08778, allocations: 109.2 kB / 368.1 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.0879, allocations: 53.81 kB / 368.2 MB, free: 4.086 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.08792, allocations: 4 kB / 368.2 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.08796, allocations: 38.56 kB / 368.2 MB, free: 4.035 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.08796, allocations: 0 / 368.2 MB, free: 4.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003094/0.09106, allocations: 1.13 MB / 369.4 MB, free: 2.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.09112, allocations: 110.8 kB / 369.5 MB, free: 2.672 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003195/0.09145, allocations: 328.4 kB / 369.8 MB, free: 2.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.0915, allocations: 33.7 kB / 369.8 MB, free: 2.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.09163, allocations: 208 kB / 370 MB, free: 2.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.192e-05/0.09168, allocations: 51.3 kB / 370.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.755e-05/0.09174, allocations: 29.7 kB / 370.1 MB, free: 2.008 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.09185, allocations: 338.8 kB / 370.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003477/0.09221, allocations: 163.9 kB / 370.6 MB, free: 1.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004035/0.09262, allocations: 259.1 kB / 370.8 MB, free: 1.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006434/0.09327, allocations: 370 kB / 371.2 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.09328, allocations: 0 / 371.2 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.1417/0.2349, allocations: 1.329 MB / 372.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.235, allocations: 6.562 kB / 372.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.235, allocations: 3.141 kB / 372.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01085/0.2459, allocations: 1.183 MB / 373.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000434/0.2463, allocations: 72.81 kB / 373.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00959/0.2559, allocations: 4.942 MB / 378.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005403/0.2565, allocations: 41.55 kB / 378.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-05/0.2566, allocations: 20.64 kB / 378.8 MB, free: 15.77 MB / 302.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.0001789/0.2567, allocations: 150.9 kB / 378.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.395e-05/0.2568, allocations: 28.8 kB / 379 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.487e-05/0.2569, allocations: 33.23 kB / 379 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.2569, allocations: 1.406 kB / 379 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.2569, allocations: 1.312 kB / 379 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.2569, allocations: 2.188 kB / 379 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.2579, allocations: 0.7673 MB / 379.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.258, allocations: 1.406 kB / 379.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003563/0.2583, allocations: 48.89 kB / 379.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2583, allocations: 6 kB / 379.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.09e-05/0.2584, allocations: 12.98 kB / 379.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.2584, allocations: 2.531 kB / 379.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2584, allocations: 1.562 kB / 379.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007427/0.2591, allocations: 0.5392 MB / 380.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.047e-05/0.2592, allocations: 103.5 kB / 380.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/0.2592, allocations: 7.141 kB / 380.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003883/0.2596, allocations: 32.25 kB / 380.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.66e-05/0.2597, allocations: 12.39 kB / 380.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.2597, allocations: 12.03 kB / 380.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001979/0.2599, allocations: 227.4 kB / 380.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2599, allocations: 0 / 380.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004611/0.2604, allocations: 101.8 kB / 380.9 MB, free: 14.51 MB / 302.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.0009012/0.2613, allocations: 1.075 MB / 381.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001851/0.2632, allocations: 0.7533 MB / 382.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2632, allocations: 4 kB / 382.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002438/0.2634, allocations: 106.4 kB / 382.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005826/0.264, allocations: 65.81 kB / 382.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02149/0.2855, allocations: 5.434 MB / 388.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.2857, allocations: 0.775 MB / 389.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001938/0.2859, allocations: 33.12 kB / 389.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.2861, allocations: 114.7 kB / 389.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2861, allocations: 0 / 389.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02122/0.3073, allocations: 10.95 MB / 400.2 MB, free: 3.734 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001232/0.3075, allocations: 236.8 kB / 400.4 MB, free: 3.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.068/2.375, allocations: 0 / 400.4 MB, free: 3.48 MB / 302.1 MB (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 --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)