Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.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.Lines.LightningLosslessTransmissionLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine") translateModel(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, 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.328/1.328, allocations: 226.5 MB / 244.3 MB, free: 6.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007732/0.0007729, allocations: 107.4 kB / 296.4 MB, free: 6.781 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002408/0.0002409, allocations: 4 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2493, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.002342/0.2517, allocations: 2.409 MB / 409.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.2527, allocations: 0.7928 MB / 410.7 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.2529, allocations: 4 kB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.253, allocations: 28.52 kB / 410.7 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002512/0.2533, allocations: 109 kB / 410.8 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002615/0.2535, allocations: 137.5 kB / 411 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000281/0.2538, allocations: 426.3 kB / 411.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.2541, allocations: 85.17 kB / 411.5 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.2543, allocations: 159.4 kB / 411.6 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.2545, allocations: 179.3 kB / 411.8 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.472e-05/0.2545, allocations: 20 kB / 411.8 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.702e-05/0.2546, allocations: 20 kB / 411.8 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.502e-05/0.2547, allocations: 71.7 kB / 411.9 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.072e-05/0.2547, allocations: 81.52 kB / 412 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002421/0.255, allocations: 336 kB / 412.3 MB, free: 22.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.255, allocations: 0 / 412.3 MB, free: 22.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.255, allocations: 0 / 412.3 MB, free: 22.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.255, allocations: 0 / 412.3 MB, free: 22.98 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001291/0.2563, allocations: 0.6408 MB / 413 MB, free: 22.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.2564, allocations: 8.031 kB / 413 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.2565, allocations: 51.61 kB / 413 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003242/0.2569, allocations: 289.5 kB / 413.3 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.089e-05/0.257, allocations: 50.12 kB / 413.3 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.257, allocations: 27.95 kB / 413.4 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004097/0.2574, allocations: 276.4 kB / 413.6 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.2574, allocations: 4 kB / 413.6 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.2575, allocations: 15.98 kB / 413.7 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.2575, allocations: 4 kB / 413.7 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003006/0.2578, allocations: 173.5 kB / 413.8 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002014/0.2598, allocations: 1.056 MB / 414.9 MB, free: 20.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002706/0.2601, allocations: 122.5 kB / 415 MB, free: 20.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.2603, allocations: 84.83 kB / 415.1 MB, free: 19.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.2603, allocations: 7.953 kB / 415.1 MB, free: 19.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.2603, allocations: 42.55 kB / 415.1 MB, free: 19.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.743e-06/0.2603, allocations: 0 / 415.1 MB, free: 19.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008553/0.2612, allocations: 449.4 kB / 415.6 MB, free: 19.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.2612, allocations: 158.2 kB / 415.7 MB, free: 19.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.2615, allocations: 274.6 kB / 416 MB, free: 18.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.2615, allocations: 25.7 kB / 416 MB, free: 18.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.935e-05/0.2616, allocations: 172.2 kB / 416.2 MB, free: 18.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.2616, allocations: 59.19 kB / 416.3 MB, free: 18.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.514e-05/0.2617, allocations: 4 kB / 416.3 MB, free: 18.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.596e-05/0.2617, allocations: 334.8 kB / 416.6 MB, free: 18.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.2619, allocations: 88.33 kB / 416.7 MB, free: 18.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.2621, allocations: 136.7 kB / 416.8 MB, free: 18.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.2623, allocations: 106.1 kB / 416.9 MB, free: 18.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2623, allocations: 7.938 kB / 416.9 MB, free: 18.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007695/0.27, allocations: 0.8926 MB / 417.8 MB, free: 17.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.2701, allocations: 4 kB / 417.8 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.2701, allocations: 8 kB / 417.8 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009186/0.2793, allocations: 0.8249 MB / 418.6 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.2794, allocations: 23.97 kB / 418.7 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007519/0.287, allocations: 4.509 MB / 423.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.2873, allocations: 35.83 kB / 423.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.2874, allocations: 7.984 kB / 423.2 MB, free: 11.44 MB / 298.7 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 (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: 1 {(1,100.0%) 8} * Non-linear torn systems: 1 {4 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001608/0.2875, allocations: 137.8 kB / 423.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.095e-05/0.2876, allocations: 19.81 kB / 423.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.353e-05/0.2876, allocations: 25.83 kB / 423.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.2876, allocations: 4 kB / 423.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.453e-06/0.2876, allocations: 7.891 kB / 423.4 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2876, allocations: 4 kB / 423.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007602/0.2884, allocations: 0.6217 MB / 424 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2884, allocations: 0 / 424 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/0.2886, allocations: 23.92 kB / 424.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001736/0.2887, allocations: 49.69 kB / 424.1 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.2888, allocations: 4.016 kB / 424.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.29, allocations: 2.677 MB / 426.8 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.29, allocations: 3.953 kB / 426.8 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004252/0.2905, allocations: 317.9 kB / 427.1 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.2905, allocations: 108.8 kB / 427.2 MB, free: 7.059 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/0.2906, allocations: 0 / 427.2 MB, free: 7.059 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.2908, allocations: 16 kB / 427.2 MB, free: 7.043 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.2908, allocations: 15.97 kB / 427.2 MB, free: 7.027 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.2909, allocations: 4 kB / 427.2 MB, free: 7.023 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001632/0.291, allocations: 198 kB / 427.4 MB, free: 6.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.291, allocations: 4 kB / 427.4 MB, free: 6.824 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004706/0.2915, allocations: 103.7 kB / 427.5 MB, free: 6.723 MB / 298.7 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 (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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001282/0.2917, allocations: 99.25 kB / 427.6 MB, free: 6.617 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.293, allocations: 0.5595 MB / 428.2 MB, free: 6.031 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.293, allocations: 0 / 428.2 MB, free: 6.031 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003371/0.2934, allocations: 313 kB / 428.5 MB, free: 5.703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.2938, allocations: 48.61 kB / 428.6 MB, free: 5.656 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009355/0.2947, allocations: 0.6552 MB / 429.2 MB, free: 4.969 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.295, allocations: 0.7674 MB / 430 MB, free: 4.176 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.288e-05/0.2951, allocations: 23.42 kB / 430 MB, free: 4.152 MB / 298.7 MB Notification: Performance of SimCode: time 8.01e-07/0.2951, allocations: 0 / 430 MB, free: 4.152 MB / 298.7 MB Notification: Performance of Templates: time 0.007529/0.3026, allocations: 6.149 MB / 436.2 MB, free: 14.01 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine --alarm=480 > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe 2>&1)