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.001339/0.001339, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001414, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 247 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2638, allocations: 50.55 MB / 408.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004477/0.2683, allocations: 2.893 MB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.2703, allocations: 0.8845 MB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.2705, allocations: 4 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002058/0.2707, allocations: 55.38 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003255/0.2711, allocations: 123.2 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003821/0.2714, allocations: 219.6 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000587/0.272, allocations: 0.5334 MB / 413.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/0.2723, allocations: 115.1 kB / 413.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002413/0.2725, allocations: 187.4 kB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003957/0.2729, allocations: 231.1 kB / 414.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.379e-05/0.273, allocations: 52 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.711e-05/0.2731, allocations: 44 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.2733, allocations: 99.66 kB / 414.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.2735, allocations: 203 kB / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000648/0.2742, allocations: 0.5011 MB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2742, allocations: 0 / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2742, allocations: 0 / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.2742, allocations: 0 / 415 MB, free: 11.32 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.001758/0.276, allocations: 0.7441 MB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.276, allocations: 12.03 kB / 415.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.188e-05/0.2761, allocations: 62.72 kB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.467e-05/0.2762, allocations: 40.7 kB / 415.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005403/0.2768, allocations: 335.6 kB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.2769, allocations: 84.52 kB / 416.2 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.151e-05/0.277, allocations: 36.31 kB / 416.3 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004937/0.2775, allocations: 279.7 kB / 416.5 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.2775, allocations: 3.953 kB / 416.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.2775, allocations: 15.98 kB / 416.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.2776, allocations: 8 kB / 416.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003722/0.2779, allocations: 169.2 kB / 416.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00287/0.2808, allocations: 1.472 MB / 418.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.281, allocations: 101.2 kB / 418.3 MB, free: 7.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.2812, allocations: 49.81 kB / 418.4 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.2812, allocations: 4 kB / 418.4 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.2812, allocations: 42.44 kB / 418.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.994e-06/0.2812, allocations: 0 / 418.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.003236/0.2845, allocations: 1.08 MB / 419.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.024e-05/0.2846, allocations: 106.8 kB / 419.6 MB, free: 6.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004293/0.285, allocations: 324.5 kB / 419.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.654e-05/0.2851, allocations: 29.7 kB / 419.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.2853, allocations: 212.4 kB / 420.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.2853, allocations: 47.59 kB / 420.2 MB, free: 5.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.2855, allocations: 81.64 kB / 420.3 MB, free: 5.625 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.2856, allocations: 338.8 kB / 420.6 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.286, allocations: 147.9 kB / 420.7 MB, free: 5.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004316/0.2864, allocations: 255.8 kB / 421 MB, free: 4.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006795/0.2871, allocations: 350.1 kB / 421.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2871, allocations: 0 / 421.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009248/0.2964, allocations: 1.317 MB / 422.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.2964, allocations: 8 kB / 422.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.2965, allocations: 0 / 422.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01079/0.3072, allocations: 1.157 MB / 423.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004289/0.3077, allocations: 71.92 kB / 423.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/0.3189, allocations: 5.336 MB / 429.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005886/0.3196, allocations: 39.91 kB / 429.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/0.3196, allocations: 15.98 kB / 429.3 MB, free: 12.23 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.0002164/0.3198, allocations: 149.8 kB / 429.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.961e-05/0.3199, allocations: 27.81 kB / 429.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.882e-05/0.32, allocations: 26.61 kB / 429.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.32, allocations: 4 kB / 429.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.32, allocations: 0 / 429.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.32, allocations: 7.922 kB / 429.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.3212, allocations: 0.7552 MB / 430.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3212, allocations: 0 / 430.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003665/0.3216, allocations: 43.95 kB / 430.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.3216, allocations: 3.938 kB / 430.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.3216, allocations: 15.92 kB / 430.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3216, allocations: 0 / 430.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3216, allocations: 3.984 kB / 430.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008744/0.3225, allocations: 0.5216 MB / 430.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.893e-05/0.3226, allocations: 108.9 kB / 430.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.781e-05/0.3227, allocations: 7.938 kB / 430.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004015/0.3231, allocations: 24.05 kB / 431 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/0.3232, allocations: 19.97 kB / 431 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.3232, allocations: 7.984 kB / 431 MB, free: 10.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002599/0.3235, allocations: 223.1 kB / 431.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3235, allocations: 0 / 431.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005428/0.324, allocations: 96 kB / 431.3 MB, free: 10.1 MB / 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.001246/0.3253, allocations: 1.059 MB / 432.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002082/0.3274, allocations: 0.755 MB / 433.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3274, allocations: 0 / 433.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002513/0.3276, allocations: 91.94 kB / 433.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005726/0.3282, allocations: 73.16 kB / 433.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02177/0.35, allocations: 5.231 MB / 438.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.3504, allocations: 0.7756 MB / 439.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002142/0.3507, allocations: 42.56 kB / 439.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.3509, allocations: 111.3 kB / 439.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of SimCode: time 2.315e-06/0.3509, allocations: 0 / 439.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03991/0.3908, allocations: 11.71 MB / 451.1 MB, free: 6.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.36, allocations: 7.922 kB / 451.2 MB, free: 6.172 MB / 366.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)