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: translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000954/0.0009541, allocations: 194.3 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.6 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000805/0.000805, allocations: 103.1 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002431/0.0002433, allocations: 8 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2007, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002379/0.2031, allocations: 2.45 MB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.2043, allocations: 0.8555 MB / 411.3 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.2045, allocations: 4 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.2046, allocations: 41.66 kB / 411.4 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002354/0.2049, allocations: 95.31 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002444/0.2051, allocations: 154.5 kB / 411.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000349/0.2055, allocations: 486.2 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.2057, allocations: 90.7 kB / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.2058, allocations: 157 kB / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.206, allocations: 191.2 kB / 412.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.028e-05/0.2061, allocations: 20 kB / 412.6 MB, free: 23.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.024e-05/0.2061, allocations: 20 kB / 412.6 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.679e-05/0.2062, allocations: 76.62 kB / 412.7 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.2063, allocations: 196.8 kB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002361/0.2066, allocations: 364 kB / 413.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.2066, allocations: 4.688 kB / 413.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2066, allocations: 3.906 kB / 413.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.2066, allocations: 0 / 413.2 MB, free: 22.54 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.001344/0.208, allocations: 0.6743 MB / 413.9 MB, free: 21.81 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.208, allocations: 12.03 kB / 413.9 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.02e-05/0.2081, allocations: 40.47 kB / 413.9 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000332/0.2084, allocations: 335.3 kB / 414.3 MB, free: 21.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.456e-05/0.2085, allocations: 80.53 kB / 414.3 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.912e-05/0.2086, allocations: 28.38 kB / 414.4 MB, free: 21.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003724/0.209, allocations: 295.9 kB / 414.7 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.209, allocations: 0 / 414.7 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.558e-05/0.209, allocations: 7.938 kB / 414.7 MB, free: 20.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.209, allocations: 8 kB / 414.7 MB, free: 20.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002969/0.2093, allocations: 173.3 kB / 414.8 MB, free: 20.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002352/0.2117, allocations: 1.488 MB / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.2119, allocations: 105.2 kB / 416.4 MB, free: 19.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.212, allocations: 53.81 kB / 416.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.732e-05/0.212, allocations: 7.938 kB / 416.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.212, allocations: 34.56 kB / 416.5 MB, free: 18.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.2121, allocations: 0 / 416.5 MB, free: 18.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002874/0.2149, allocations: 1.126 MB / 417.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.215, allocations: 106.8 kB / 417.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.2153, allocations: 316.5 kB / 418.1 MB, free: 17.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.324e-05/0.2153, allocations: 29.7 kB / 418.1 MB, free: 17.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.297e-05/0.2154, allocations: 208 kB / 418.3 MB, free: 17.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.2154, allocations: 51.3 kB / 418.4 MB, free: 17.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/0.2155, allocations: 8 kB / 418.4 MB, free: 17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.498e-05/0.2156, allocations: 334.8 kB / 418.7 MB, free: 16.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003165/0.2159, allocations: 167.8 kB / 418.8 MB, free: 16.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/0.2162, allocations: 251 kB / 419.1 MB, free: 16.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005662/0.2168, allocations: 362.9 kB / 419.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2168, allocations: 3.938 kB / 419.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.008527/0.2253, allocations: 1.349 MB / 420.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.2254, allocations: 4 kB / 420.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2254, allocations: 11.98 kB / 420.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009898/0.2353, allocations: 1.172 MB / 422 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000415/0.2357, allocations: 79.86 kB / 422.1 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009063/0.2448, allocations: 4.924 MB / 427 MB, free: 8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000523/0.2453, allocations: 43.97 kB / 427 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.2454, allocations: 23.97 kB / 427.1 MB, free: 7.934 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.0001534/0.2456, allocations: 153.7 kB / 427.2 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.149e-05/0.2456, allocations: 31.66 kB / 427.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.339e-05/0.2457, allocations: 30.55 kB / 427.3 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2457, allocations: 4 kB / 427.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.2457, allocations: 0 / 427.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2457, allocations: 0 / 427.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008882/0.2466, allocations: 0.7669 MB / 428 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2466, allocations: 0 / 428 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003527/0.247, allocations: 59.88 kB / 428.1 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.247, allocations: 0 / 428.1 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.247, allocations: 7.984 kB / 428.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.247, allocations: 0 / 428.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.247, allocations: 4 kB / 428.1 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006913/0.2477, allocations: 0.5374 MB / 428.6 MB, free: 6.266 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.381e-05/0.2478, allocations: 112.8 kB / 428.8 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/0.2478, allocations: 0 / 428.8 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003805/0.2482, allocations: 36.03 kB / 428.8 MB, free: 6.102 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.163e-05/0.2483, allocations: 15.97 kB / 428.8 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.2483, allocations: 7.984 kB / 428.8 MB, free: 6.078 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001736/0.2485, allocations: 223.1 kB / 429 MB, free: 5.859 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2485, allocations: 0 / 429 MB, free: 5.859 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004675/0.249, allocations: 99.94 kB / 429.1 MB, free: 5.762 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 9.915e-05/0.2491, allocations: 107.2 kB / 429.2 MB, free: 5.645 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.2508, allocations: 0.7316 MB / 430 MB, free: 4.887 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2508, allocations: 4.25 kB / 430 MB, free: 4.883 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002225/0.251, allocations: 107.9 kB / 430.1 MB, free: 4.777 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005305/0.2516, allocations: 65.03 kB / 430.1 MB, free: 4.715 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009362/0.2525, allocations: 0.7224 MB / 430.9 MB, free: 3.969 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001575/0.2527, allocations: 0.7794 MB / 431.6 MB, free: 3.164 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.2529, allocations: 35.39 kB / 431.7 MB, free: 3.129 MB / 298.7 MB Notification: Performance of SimCode: time 7.01e-07/0.2529, allocations: 0 / 431.7 MB, free: 3.129 MB / 298.7 MB Notification: Performance of Templates: time 0.007685/0.2605, allocations: 6.628 MB / 438.3 MB, free: 12.52 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile (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 & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning --alarm=480 > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)