Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009557/0.0009557, allocations: 195.1 kB / 17.38 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.168/1.168, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007887/0.0007886, allocations: 95.05 kB / 296.7 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.0002912, allocations: 8 kB / 356.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2363, allocations: 51.29 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.001958/0.2383, allocations: 2.455 MB / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000893/0.2392, allocations: 0.8516 MB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.2393, allocations: 4 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.2394, allocations: 43.62 kB / 411.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002085/0.2396, allocations: 84.83 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.2398, allocations: 157.7 kB / 411.7 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002994/0.2402, allocations: 482.3 kB / 412.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.2403, allocations: 96.84 kB / 412.3 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.2404, allocations: 163.4 kB / 412.4 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00017/0.2406, allocations: 183.2 kB / 412.6 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.48e-05/0.2407, allocations: 20 kB / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.71e-05/0.2407, allocations: 31.22 kB / 412.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.859e-05/0.2408, allocations: 71.64 kB / 412.7 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.2409, allocations: 192.9 kB / 412.9 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002071/0.2411, allocations: 368.2 kB / 413.3 MB, free: 22.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2411, allocations: 0 / 413.3 MB, free: 22.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2411, allocations: 0 / 413.3 MB, free: 22.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.2411, allocations: 0 / 413.3 MB, free: 22.49 MB / 298.7 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.001231/0.2424, allocations: 0.6821 MB / 414 MB, free: 21.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.2424, allocations: 8.031 kB / 414 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.392e-05/0.2425, allocations: 62.67 kB / 414 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.224e-05/0.2425, allocations: 48.47 kB / 414.1 MB, free: 21.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.2428, allocations: 327.4 kB / 414.4 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.381e-05/0.2429, allocations: 84.52 kB / 414.5 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.456e-05/0.243, allocations: 32.31 kB / 414.5 MB, free: 21.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.2433, allocations: 287.7 kB / 414.8 MB, free: 20.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.2434, allocations: 3.938 kB / 414.8 MB, free: 20.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.2434, allocations: 12 kB / 414.8 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.2434, allocations: 4 kB / 414.8 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.2437, allocations: 173.2 kB / 415 MB, free: 20.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.2459, allocations: 1.484 MB / 416.5 MB, free: 19.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.2461, allocations: 113.2 kB / 416.6 MB, free: 18.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.186e-05/0.2462, allocations: 53.83 kB / 416.6 MB, free: 18.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.2462, allocations: 4 kB / 416.6 MB, free: 18.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/0.2462, allocations: 34.56 kB / 416.7 MB, free: 18.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.2462, allocations: 0 / 416.7 MB, free: 18.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002645/0.2489, allocations: 1.125 MB / 417.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.626e-05/0.2489, allocations: 110.8 kB / 417.9 MB, free: 17.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.2492, allocations: 320.4 kB / 418.2 MB, free: 17.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.2492, allocations: 29.7 kB / 418.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.939e-05/0.2493, allocations: 200.1 kB / 418.5 MB, free: 16.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.2493, allocations: 55.28 kB / 418.5 MB, free: 16.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.59e-05/0.2494, allocations: 4 kB / 418.5 MB, free: 16.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.922e-05/0.2494, allocations: 346.8 kB / 418.8 MB, free: 16.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002924/0.2497, allocations: 163.7 kB / 419 MB, free: 16.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003053/0.25, allocations: 247.1 kB / 419.2 MB, free: 16.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000519/0.2505, allocations: 365.3 kB / 419.6 MB, free: 15.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2506, allocations: 4 kB / 419.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.008333/0.2589, allocations: 1.339 MB / 420.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.2589, allocations: 12.06 kB / 421 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2589, allocations: 3.938 kB / 421 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009795/0.2687, allocations: 1.173 MB / 422.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003725/0.2691, allocations: 71.88 kB / 422.2 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008419/0.2776, allocations: 4.937 MB / 427.1 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/0.2781, allocations: 43.98 kB / 427.2 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.596e-05/0.2781, allocations: 15.97 kB / 427.2 MB, free: 7.816 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 1,4 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001436/0.2783, allocations: 145.8 kB / 427.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.66e-05/0.2783, allocations: 31.56 kB / 427.4 MB, free: 7.633 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.206e-05/0.2784, allocations: 30.61 kB / 427.4 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.2784, allocations: 4 kB / 427.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.2784, allocations: 0 / 427.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2784, allocations: 0 / 427.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008393/0.2792, allocations: 0.7746 MB / 428.2 MB, free: 6.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.2793, allocations: 4.125 kB / 428.2 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/0.2796, allocations: 51.94 kB / 428.2 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2796, allocations: 4 kB / 428.2 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.2796, allocations: 7.984 kB / 428.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.2796, allocations: 3.938 kB / 428.3 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2796, allocations: 0 / 428.3 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006651/0.2803, allocations: 0.5453 MB / 428.8 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-05/0.2804, allocations: 96.83 kB / 428.9 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.953e-05/0.2804, allocations: 7.984 kB / 428.9 MB, free: 6.016 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003581/0.2808, allocations: 32.05 kB / 428.9 MB, free: 5.984 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/0.2808, allocations: 15.97 kB / 428.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.2809, allocations: 3.984 kB / 429 MB, free: 5.965 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001582/0.281, allocations: 227 kB / 429.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.281, allocations: 0 / 429.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000429/0.2815, allocations: 104 kB / 429.3 MB, free: 5.641 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008241/0.2823, allocations: 1.09 MB / 430.4 MB, free: 4.523 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.284, allocations: 0.7356 MB / 431.1 MB, free: 3.762 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.284, allocations: 0 / 431.1 MB, free: 3.762 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002083/0.2842, allocations: 103.9 kB / 431.2 MB, free: 3.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005281/0.2847, allocations: 73.22 kB / 431.3 MB, free: 3.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.295, allocations: 2.957 MB / 434.2 MB, free: 0.543 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.2953, allocations: 0.7795 MB / 435 MB, free: 15.74 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.2955, allocations: 115.4 kB / 435.1 MB, free: 15.62 MB / 314.7 MB Notification: Performance of SimCode: time 5.71e-07/0.2955, allocations: 0 / 435.1 MB, free: 15.62 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.016/3.311, allocations: 7.132 MB / 442.3 MB, free: 8.488 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)