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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001759/0.001758, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001865/0.001865, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.4 MB / 247 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 67.89 kB / 358.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2489, allocations: 50.55 MB / 408.9 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004081/0.253, allocations: 2.85 MB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001581/0.2546, allocations: 0.857 MB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.2548, allocations: 0 / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.255, allocations: 39.58 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.2553, allocations: 115.1 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.2557, allocations: 211.5 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005017/0.2562, allocations: 486.3 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.2565, allocations: 113.2 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003063/0.2568, allocations: 187.3 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003174/0.2571, allocations: 219.1 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.233e-05/0.2572, allocations: 48 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.2573, allocations: 47.94 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.43e-05/0.2574, allocations: 99.66 kB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.2576, allocations: 179.2 kB / 414.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005317/0.2581, allocations: 461.3 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2582, allocations: 0 / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2582, allocations: 0 / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.168e-06/0.2582, allocations: 0 / 414.7 MB, free: 11.51 MB / 334.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.001554/0.2597, allocations: 0.7011 MB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.2598, allocations: 8.031 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.064e-05/0.2599, allocations: 58.73 kB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001928/0.2601, allocations: 48.69 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005217/0.2606, allocations: 299.8 kB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-05/0.2607, allocations: 50.69 kB / 415.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.967e-05/0.2608, allocations: 24.38 kB / 415.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004961/0.2613, allocations: 284.3 kB / 416.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.2613, allocations: 0 / 416.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.2613, allocations: 15.98 kB / 416.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.2613, allocations: 4 kB / 416.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003694/0.2617, allocations: 161.7 kB / 416.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002366/0.2641, allocations: 1.052 MB / 417.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003349/0.2644, allocations: 118.5 kB / 417.5 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.2647, allocations: 88.8 kB / 417.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.2647, allocations: 0 / 417.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.2648, allocations: 38.56 kB / 417.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.2648, allocations: 0 / 417.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001027/0.2658, allocations: 441.5 kB / 418.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.915e-05/0.2659, allocations: 162.2 kB / 418.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003199/0.2662, allocations: 278.5 kB / 418.5 MB, free: 7.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/0.2663, allocations: 33.64 kB / 418.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.2664, allocations: 180.3 kB / 418.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.401e-05/0.2665, allocations: 51.59 kB / 418.8 MB, free: 7.137 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.2666, allocations: 45.69 kB / 418.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.2667, allocations: 330.8 kB / 419.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.2669, allocations: 87.95 kB / 419.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002392/0.2672, allocations: 132.5 kB / 419.4 MB, free: 6.523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000344/0.2675, allocations: 163.9 kB / 419.5 MB, free: 6.359 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2676, allocations: 0 / 419.5 MB, free: 6.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007548/0.2751, allocations: 0.8992 MB / 420.4 MB, free: 5.449 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.2752, allocations: 4 kB / 420.4 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.2752, allocations: 0 / 420.4 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009224/0.2844, allocations: 0.8365 MB / 421.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.2846, allocations: 15.98 kB / 421.3 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009378/0.294, allocations: 4.905 MB / 426.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.2943, allocations: 23.88 kB / 426.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.2944, allocations: 11.92 kB / 426.2 MB, free: 15.36 MB / 350.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.0001892/0.2946, allocations: 141.8 kB / 426.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.866e-05/0.2946, allocations: 23.86 kB / 426.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.644e-05/0.2947, allocations: 29.89 kB / 426.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2947, allocations: 0 / 426.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.2947, allocations: 4 kB / 426.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2947, allocations: 3.984 kB / 426.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009819/0.2957, allocations: 0.6139 MB / 427 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.2957, allocations: 4 kB / 427 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.2959, allocations: 23.91 kB / 427 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001976/0.2961, allocations: 49.69 kB / 427.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.2961, allocations: 8 kB / 427.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002354/0.2985, allocations: 2.928 MB / 430 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2985, allocations: 0 / 430 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005372/0.299, allocations: 321.8 kB / 430.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.368e-05/0.2991, allocations: 112.8 kB / 430.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/0.2991, allocations: 0 / 430.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.2993, allocations: 15.98 kB / 430.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.225e-05/0.2994, allocations: 27.97 kB / 430.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.2995, allocations: 4 kB / 430.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002236/0.2997, allocations: 198 kB / 430.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2997, allocations: 0 / 430.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005119/0.3002, allocations: 103.8 kB / 430.8 MB, free: 10.37 MB / 350.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.0008813/0.3011, allocations: 0.8436 MB / 431.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.3026, allocations: 0.5479 MB / 432.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3026, allocations: 0 / 432.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004763/0.3031, allocations: 329 kB / 432.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004165/0.3036, allocations: 44.53 kB / 432.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01797/0.3215, allocations: 3.985 MB / 436.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.322, allocations: 0.7635 MB / 437.3 MB, free: 3.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001476/0.3221, allocations: 30 kB / 437.3 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.3223, allocations: 91.39 kB / 437.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3223, allocations: 0 / 437.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0389/0.3612, allocations: 9.842 MB / 447.3 MB, free: 9.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.43, allocations: 19.33 kB / 447.3 MB, free: 9.867 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe 2>&1)