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: translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001788/0.001788, allocations: 107.4 kB / 17.98 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.00161, allocations: 213.8 kB / 18.92 MB, free: 4.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 227.4 MB / 247.1 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 66.11 kB / 307.1 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1134, allocations: 50.54 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004582/0.118, allocations: 2.933 MB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.1197, allocations: 0.8768 MB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.1199, allocations: 4 kB / 361.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.1201, allocations: 43.64 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003118/0.1205, allocations: 103.4 kB / 361.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003865/0.1209, allocations: 199.8 kB / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006247/0.1215, allocations: 0.5373 MB / 362.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.1218, allocations: 111.1 kB / 362.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002474/0.122, allocations: 203.3 kB / 362.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003023/0.1223, allocations: 219.1 kB / 362.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.445e-05/0.1224, allocations: 48 kB / 362.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.61e-05/0.1225, allocations: 48 kB / 363 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.1226, allocations: 107.6 kB / 363.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.1228, allocations: 199.1 kB / 363.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004604/0.1233, allocations: 383.3 kB / 363.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1233, allocations: 4 kB / 363.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1233, allocations: 0 / 363.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.1233, allocations: 0 / 363.7 MB, free: 8.371 MB / 302.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.001839/0.1252, allocations: 0.7404 MB / 364.4 MB, free: 7.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.1252, allocations: 16.02 kB / 364.4 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.85e-05/0.1254, allocations: 36.56 kB / 364.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.1258, allocations: 327.4 kB / 364.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.1259, allocations: 80.52 kB / 364.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.644e-05/0.126, allocations: 28.38 kB / 364.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000509/0.1265, allocations: 291.9 kB / 365.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.1266, allocations: 4 kB / 365.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.1266, allocations: 7.984 kB / 365.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.1266, allocations: 8 kB / 365.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000372/0.127, allocations: 165.2 kB / 365.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003311/0.1303, allocations: 1.465 MB / 366.8 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.1306, allocations: 105.2 kB / 366.9 MB, free: 4.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.1307, allocations: 45.83 kB / 367 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.1307, allocations: 7.984 kB / 367 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.825e-05/0.1308, allocations: 38.56 kB / 367 MB, free: 4.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.913e-06/0.1308, allocations: 7.875 kB / 367 MB, free: 4.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003711/0.1345, allocations: 1.064 MB / 368.1 MB, free: 3.613 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.472e-05/0.1346, allocations: 110.8 kB / 368.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003943/0.135, allocations: 324.4 kB / 368.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.1351, allocations: 33.64 kB / 368.5 MB, free: 3.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.1353, allocations: 208 kB / 368.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.32e-05/0.1353, allocations: 51.3 kB / 368.8 MB, free: 2.855 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.1355, allocations: 77.64 kB / 368.9 MB, free: 2.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002362/0.1357, allocations: 330.8 kB / 369.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003628/0.1361, allocations: 155.9 kB / 369.3 MB, free: 2.289 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.1365, allocations: 247 kB / 369.6 MB, free: 2.008 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006984/0.1372, allocations: 346.1 kB / 369.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1373, allocations: 4 kB / 369.9 MB, free: 1.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01052/0.1478, allocations: 1.314 MB / 371.2 MB, free: 308 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.1478, allocations: 15.12 kB / 371.2 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.1479, allocations: 4 kB / 371.3 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1586/0.3065, allocations: 1.148 MB / 372.4 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005048/0.307, allocations: 69.08 kB / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01183/0.3188, allocations: 5.355 MB / 377.8 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006472/0.3195, allocations: 30.72 kB / 377.9 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.3196, allocations: 16.95 kB / 377.9 MB, free: 16.26 MB / 302.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.0001896/0.3198, allocations: 155.2 kB / 378 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.737e-05/0.3199, allocations: 24.08 kB / 378 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.85e-05/0.3199, allocations: 29.34 kB / 378.1 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.3199, allocations: 5.406 kB / 378.1 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.3199, allocations: 0 / 378.1 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.32, allocations: 2.078 kB / 378.1 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.3211, allocations: 0.7544 MB / 378.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.3211, allocations: 2.141 kB / 378.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/0.3215, allocations: 44.52 kB / 378.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.3215, allocations: 2.156 kB / 378.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.815e-05/0.3215, allocations: 8.797 kB / 378.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.3215, allocations: 5.891 kB / 378.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3215, allocations: 5.219 kB / 378.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007668/0.3223, allocations: 0.5097 MB / 379.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.638e-05/0.3224, allocations: 105.6 kB / 379.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.938e-05/0.3225, allocations: 2.141 kB / 379.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004272/0.3229, allocations: 32.33 kB / 379.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.666e-05/0.323, allocations: 12.09 kB / 379.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.323, allocations: 15.64 kB / 379.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002314/0.3232, allocations: 223.2 kB / 379.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3232, allocations: 0 / 379.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006407/0.3239, allocations: 98.75 kB / 379.9 MB, free: 15.01 MB / 302.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.0001316/0.324, allocations: 100.2 kB / 380 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.3261, allocations: 0.7613 MB / 380.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3262, allocations: 0 / 380.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.3264, allocations: 98.05 kB / 380.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005894/0.327, allocations: 72 kB / 380.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.3284, allocations: 0.7348 MB / 381.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.3286, allocations: 0.7776 MB / 382.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.3288, allocations: 34 kB / 382.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3288, allocations: 0 / 382.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of Templates: time 0.01024/0.339, allocations: 6.67 MB / 389.1 MB, free: 11.27 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)