Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.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.Lines.LightningLosslessTransmissionLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine") translateModel(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00123/0.00123, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 61.84 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1406, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.005326/0.146, allocations: 2.84 MB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.1481, allocations: 0.8648 MB / 362.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.1483, allocations: 0 / 362.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002174/0.1485, allocations: 47.58 kB / 362.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003778/0.1489, allocations: 119.1 kB / 362.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004715/0.1494, allocations: 195.6 kB / 363 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005568/0.15, allocations: 494.2 kB / 363.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002511/0.1502, allocations: 117.1 kB / 363.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003043/0.1505, allocations: 187.4 kB / 363.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003387/0.1509, allocations: 219.2 kB / 364 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.153e-05/0.151, allocations: 44 kB / 364 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.1511, allocations: 44 kB / 364 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.138e-05/0.1512, allocations: 99.66 kB / 364.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.1514, allocations: 187.2 kB / 364.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005755/0.152, allocations: 462.4 kB / 364.8 MB, free: 7.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.152, allocations: 0 / 364.8 MB, free: 7.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.152, allocations: 0 / 364.8 MB, free: 7.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.152, allocations: 0 / 364.8 MB, free: 7.422 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001485/0.1535, allocations: 0.6896 MB / 365.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.1536, allocations: 8.031 kB / 365.5 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000209/0.1538, allocations: 48.55 kB / 365.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005047/0.1543, allocations: 303.5 kB / 365.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-05/0.1544, allocations: 46.7 kB / 365.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.835e-05/0.1545, allocations: 24.38 kB / 365.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000505/0.155, allocations: 284.5 kB / 366.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.155, allocations: 0 / 366.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.155, allocations: 12 kB / 366.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.155, allocations: 4 kB / 366.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003569/0.1554, allocations: 161.7 kB / 366.3 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002248/0.1577, allocations: 1.052 MB / 367.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002874/0.158, allocations: 114.5 kB / 367.5 MB, free: 4.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.1582, allocations: 89.02 kB / 367.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.1582, allocations: 7.984 kB / 367.6 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.1582, allocations: 38.56 kB / 367.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.1582, allocations: 0 / 367.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009319/0.1592, allocations: 436.8 kB / 368.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.4e-05/0.1593, allocations: 162.2 kB / 368.2 MB, free: 3.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.1596, allocations: 278.5 kB / 368.5 MB, free: 3.395 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.1596, allocations: 33.7 kB / 368.5 MB, free: 3.355 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1598, allocations: 180.1 kB / 368.7 MB, free: 3.172 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.784e-05/0.1598, allocations: 47.3 kB / 368.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.888e-05/0.1599, allocations: 45.69 kB / 368.8 MB, free: 3.074 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.1601, allocations: 334.8 kB / 369.1 MB, free: 2.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.1603, allocations: 87.89 kB / 369.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.1605, allocations: 136.7 kB / 369.3 MB, free: 2.504 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003114/0.1608, allocations: 164.1 kB / 369.5 MB, free: 2.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1608, allocations: 0 / 369.5 MB, free: 2.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007519/0.1683, allocations: 0.8989 MB / 370.4 MB, free: 1.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.1684, allocations: 7.938 kB / 370.4 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1684, allocations: 0 / 370.4 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009111/0.1775, allocations: 0.8287 MB / 371.2 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.1778, allocations: 19.98 kB / 371.2 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2984/0.4762, allocations: 4.879 MB / 376.1 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005441/0.4768, allocations: 21.33 kB / 376.1 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.211e-05/0.4768, allocations: 11.31 kB / 376.2 MB, free: 16.8 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002799/0.4771, allocations: 140.7 kB / 376.3 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.4772, allocations: 31.97 kB / 376.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.927e-05/0.4773, allocations: 25.66 kB / 376.4 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.4773, allocations: 9.469 kB / 376.4 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.4774, allocations: 1.125 kB / 376.4 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.4774, allocations: 0.8438 kB / 376.4 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00159/0.479, allocations: 0.6148 MB / 377 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.479, allocations: 1.594 kB / 377 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.4792, allocations: 20.77 kB / 377 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00031/0.4795, allocations: 55.53 kB / 377.1 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.19e-05/0.4796, allocations: 11.28 kB / 377.1 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00251/0.4821, allocations: 2.931 MB / 380 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.4821, allocations: 1 kB / 380 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007075/0.4828, allocations: 306.3 kB / 380.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.691e-05/0.4829, allocations: 107 kB / 380.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.552e-05/0.483, allocations: 2.25 kB / 380.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.4833, allocations: 21.72 kB / 380.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.4834, allocations: 29.89 kB / 380.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.458e-05/0.4835, allocations: 9.703 kB / 380.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003228/0.4838, allocations: 198 kB / 380.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4838, allocations: 0 / 380.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008988/0.4847, allocations: 98.92 kB / 380.8 MB, free: 12.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * 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 (11): * Single equations (assignments): 9 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001726/0.4849, allocations: 111.7 kB / 380.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.487, allocations: 0.5507 MB / 381.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.487, allocations: 0 / 381.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005234/0.4875, allocations: 313.3 kB / 381.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006399/0.4882, allocations: 44.81 kB / 381.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.4896, allocations: 0.5183 MB / 382.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.4899, allocations: 0.7613 MB / 383 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.4901, allocations: 22.31 kB / 383.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.388e-05/0.4902, allocations: 29.92 kB / 383.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4902, allocations: 1.531 kB / 383.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Templates: time 0.0231/0.5133, allocations: 7.205 MB / 390.3 MB, free: 9.336 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe 2>&1)