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.001592/0.001592, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001987/0.001987, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2302, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003704/0.234, allocations: 2.9 MB / 411.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.2353, allocations: 0.8807 MB / 412.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.2355, allocations: 7.938 kB / 412.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.2357, allocations: 55.44 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002799/0.236, allocations: 119.2 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.2363, allocations: 231.6 kB / 413 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000458/0.2368, allocations: 0.5373 MB / 413.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.237, allocations: 107.1 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.2372, allocations: 199.3 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002608/0.2374, allocations: 223.1 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.092e-05/0.2375, allocations: 48 kB / 414.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.679e-05/0.2376, allocations: 48 kB / 414.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.402e-05/0.2377, allocations: 99.66 kB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.2378, allocations: 211 kB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004569/0.2383, allocations: 0.4895 MB / 414.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2383, allocations: 0 / 414.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2383, allocations: 0 / 414.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.2383, allocations: 0 / 414.9 MB, free: 11.4 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.001542/0.2399, allocations: 0.7597 MB / 415.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2399, allocations: 8.031 kB / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.441e-05/0.24, allocations: 58.73 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.259e-05/0.2401, allocations: 40.7 kB / 415.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/0.2405, allocations: 327.6 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.2406, allocations: 80.52 kB / 416.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.655e-05/0.2407, allocations: 32.31 kB / 416.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004264/0.2411, allocations: 287.7 kB / 416.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.2412, allocations: 3.953 kB / 416.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.2412, allocations: 12 kB / 416.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.2412, allocations: 8 kB / 416.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003319/0.2415, allocations: 173.2 kB / 416.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002673/0.2442, allocations: 1.473 MB / 418.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001892/0.2444, allocations: 105.2 kB / 418.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.2445, allocations: 53.83 kB / 418.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.2446, allocations: 0 / 418.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.2446, allocations: 38.55 kB / 418.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 9.72e-07/0.2446, allocations: 0 / 418.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.003027/0.2476, allocations: 1.076 MB / 419.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.2477, allocations: 110.7 kB / 419.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/0.248, allocations: 324.5 kB / 419.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.762e-05/0.2481, allocations: 29.7 kB / 419.9 MB, free: 6.051 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.2482, allocations: 216.3 kB / 420.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.169e-05/0.2483, allocations: 47.58 kB / 420.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.2484, allocations: 73.66 kB / 420.2 MB, free: 5.711 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.2485, allocations: 342.8 kB / 420.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/0.2489, allocations: 152.2 kB / 420.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.2493, allocations: 251.8 kB / 420.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006649/0.2499, allocations: 353.6 kB / 421.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2499, allocations: 0 / 421.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009226/0.2592, allocations: 1.314 MB / 422.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.2592, allocations: 8 kB / 422.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.2593, allocations: 7.984 kB / 422.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01069/0.2699, allocations: 1.149 MB / 423.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004317/0.2704, allocations: 67.88 kB / 423.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/0.2812, allocations: 5.341 MB / 429.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005644/0.2818, allocations: 39.91 kB / 429.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.393e-05/0.2819, allocations: 19.98 kB / 429.2 MB, free: 12.3 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.0002049/0.2821, allocations: 153.7 kB / 429.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.439e-05/0.2822, allocations: 31.91 kB / 429.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.653e-05/0.2823, allocations: 26.59 kB / 429.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2823, allocations: 4 kB / 429.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.2823, allocations: 0 / 429.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2823, allocations: 3.938 kB / 429.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/0.2834, allocations: 0.7513 MB / 430.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2834, allocations: 0 / 430.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/0.2838, allocations: 47.94 kB / 430.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.2838, allocations: 3.938 kB / 430.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/0.2838, allocations: 15.92 kB / 430.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2838, allocations: 0 / 430.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2838, allocations: 0 / 430.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008344/0.2847, allocations: 0.5179 MB / 430.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.74e-05/0.2848, allocations: 108.9 kB / 430.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.032e-05/0.2849, allocations: 7.938 kB / 430.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000403/0.2853, allocations: 32.03 kB / 430.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.65e-05/0.2853, allocations: 15.97 kB / 430.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.2854, allocations: 7.984 kB / 430.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002383/0.2856, allocations: 219.1 kB / 431.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2856, allocations: 0 / 431.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005574/0.2862, allocations: 100 kB / 431.2 MB, free: 10.18 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.001174/0.2874, allocations: 1.055 MB / 432.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.2894, allocations: 0.751 MB / 433.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2894, allocations: 256 / 433.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002394/0.2897, allocations: 104 kB / 433.2 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005876/0.2903, allocations: 72.55 kB / 433.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02168/0.312, allocations: 5.232 MB / 438.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.3123, allocations: 0.7717 MB / 439.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002235/0.3125, allocations: 34.27 kB / 439.3 MB, free: 1.918 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001987/0.3127, allocations: 103.4 kB / 439.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3128, allocations: 0 / 439.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03533/0.3481, allocations: 11.72 MB / 451.1 MB, free: 6.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.12, allocations: 10.92 kB / 451.1 MB, free: 6.246 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 & 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)