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.001359/0.001359, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.6 MB / 244.3 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007868/0.0007868, allocations: 98.69 kB / 296.4 MB, free: 6.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000216/0.0002161, allocations: 8 kB / 356.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2003/0.2005, allocations: 51.3 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002385/0.2029, allocations: 2.442 MB / 409.9 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.2043, allocations: 0.851 MB / 410.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002562/0.2046, allocations: 4 kB / 410.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.2048, allocations: 39.64 kB / 410.8 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003204/0.2051, allocations: 85.14 kB / 410.9 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003204/0.2055, allocations: 160.4 kB / 411.1 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004056/0.2059, allocations: 472.9 kB / 411.5 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.2061, allocations: 90.23 kB / 411.6 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002372/0.2063, allocations: 159.4 kB / 411.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002305/0.2066, allocations: 199.1 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.492e-05/0.2066, allocations: 20 kB / 412 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.779e-05/0.2067, allocations: 20 kB / 412 MB, free: 23.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.418e-05/0.2067, allocations: 67.73 kB / 412.1 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.178e-05/0.2068, allocations: 85.52 kB / 412.2 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000234/0.207, allocations: 363.9 kB / 412.5 MB, free: 22.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2071, allocations: 0 / 412.5 MB, free: 22.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2071, allocations: 1.188 kB / 412.5 MB, free: 22.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.2071, allocations: 0 / 412.5 MB, free: 22.77 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.001501/0.2086, allocations: 0.6981 MB / 413.2 MB, free: 22.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.2087, allocations: 8.031 kB / 413.2 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.2088, allocations: 39.53 kB / 413.3 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/0.2092, allocations: 314.3 kB / 413.6 MB, free: 21.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.2093, allocations: 91.89 kB / 413.7 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.594e-05/0.2094, allocations: 31.95 kB / 413.7 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004054/0.2098, allocations: 279.8 kB / 414 MB, free: 21.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.2098, allocations: 8 kB / 414 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.302e-05/0.2099, allocations: 8 kB / 414 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.2099, allocations: 4 kB / 414 MB, free: 21.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003347/0.2102, allocations: 177.2 kB / 414.2 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.2128, allocations: 1.488 MB / 415.7 MB, free: 19.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.213, allocations: 109.2 kB / 415.8 MB, free: 19.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.901e-05/0.2131, allocations: 53.83 kB / 415.8 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.2131, allocations: 0 / 415.8 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.601e-05/0.2131, allocations: 38.56 kB / 415.8 MB, free: 19.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 9.12e-07/0.2132, allocations: 0 / 415.8 MB, free: 19.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002983/0.2161, allocations: 1.13 MB / 417 MB, free: 17.97 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.2162, allocations: 106.8 kB / 417.1 MB, free: 17.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003062/0.2165, allocations: 324.4 kB / 417.4 MB, free: 17.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.2166, allocations: 29.7 kB / 417.4 MB, free: 17.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.2167, allocations: 200.1 kB / 417.6 MB, free: 17.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.2167, allocations: 55.28 kB / 417.7 MB, free: 17.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.2167, allocations: 4 kB / 417.7 MB, free: 17.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.387e-05/0.2168, allocations: 338.8 kB / 418 MB, free: 16.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003138/0.2171, allocations: 167.8 kB / 418.2 MB, free: 16.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/0.2175, allocations: 247.1 kB / 418.4 MB, free: 16.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003358/0.2178, allocations: 187.9 kB / 418.6 MB, free: 16.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2178, allocations: 0 / 418.6 MB, free: 16.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009702/0.2275, allocations: 1.341 MB / 419.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/0.2276, allocations: 8 kB / 420 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.2276, allocations: 4 kB / 420 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0108/0.2384, allocations: 1.176 MB / 421.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004101/0.2389, allocations: 75.94 kB / 421.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009305/0.2482, allocations: 4.925 MB / 426.1 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000574/0.2488, allocations: 35.98 kB / 426.2 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.134e-05/0.2488, allocations: 23.97 kB / 426.2 MB, free: 8.383 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.0001641/0.249, allocations: 153.7 kB / 426.3 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.563e-05/0.2491, allocations: 31.67 kB / 426.4 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.375e-05/0.2491, allocations: 22.61 kB / 426.4 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.2491, allocations: 4 kB / 426.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-06/0.2491, allocations: 0 / 426.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2491, allocations: 128 / 426.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008973/0.25, allocations: 0.7746 MB / 427.2 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2501, allocations: 0 / 427.2 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003673/0.2504, allocations: 55.94 kB / 427.2 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.2504, allocations: 4 kB / 427.2 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.2505, allocations: 3.984 kB / 427.2 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2505, allocations: 4.031 kB / 427.2 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2505, allocations: 7.938 kB / 427.2 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006882/0.2512, allocations: 0.5423 MB / 427.8 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.397e-05/0.2512, allocations: 108.8 kB / 427.9 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.2513, allocations: 4 kB / 427.9 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.2517, allocations: 27.98 kB / 427.9 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.2518, allocations: 20.03 kB / 427.9 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.2518, allocations: 7.984 kB / 428 MB, free: 6.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001671/0.252, allocations: 219.1 kB / 428.2 MB, free: 6.305 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.252, allocations: 0 / 428.2 MB, free: 6.305 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004622/0.2524, allocations: 100 kB / 428.3 MB, free: 6.207 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.0001061/0.2525, allocations: 103.2 kB / 428.4 MB, free: 6.094 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00177/0.2543, allocations: 0.7469 MB / 429.1 MB, free: 5.324 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.2543, allocations: 0 / 429.1 MB, free: 5.324 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.2546, allocations: 108.1 kB / 429.2 MB, free: 5.219 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005308/0.2551, allocations: 72.97 kB / 429.3 MB, free: 5.148 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009466/0.256, allocations: 0.7069 MB / 430 MB, free: 4.418 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.2562, allocations: 0.7758 MB / 430.8 MB, free: 3.617 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.2564, allocations: 35.39 kB / 430.8 MB, free: 3.582 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2564, allocations: 4 kB / 430.8 MB, free: 3.578 MB / 298.7 MB Notification: Performance of Templates: time 0.008448/0.2648, allocations: 6.642 MB / 437.5 MB, free: 12.95 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)