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.001552/0.001552, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00199/0.00199, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2947, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004287/0.299, allocations: 2.845 MB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.3006, allocations: 0.857 MB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.3007, allocations: 4 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.3009, allocations: 43.52 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003115/0.3012, allocations: 111.2 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004179/0.3017, allocations: 207.5 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004652/0.3021, allocations: 482.3 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/0.3024, allocations: 118.8 kB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.3027, allocations: 187.4 kB / 413.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003209/0.303, allocations: 219.2 kB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.162e-05/0.3031, allocations: 44 kB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.726e-05/0.3032, allocations: 55.92 kB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.3033, allocations: 91.67 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.3035, allocations: 187.1 kB / 414.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004893/0.304, allocations: 458.4 kB / 414.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.304, allocations: 0 / 414.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.304, allocations: 4 kB / 414.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.467e-06/0.304, allocations: 0 / 414.7 MB, free: 11.65 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.001492/0.3055, allocations: 0.6858 MB / 415.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3056, allocations: 12.03 kB / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.66e-05/0.3056, allocations: 58.73 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001887/0.3058, allocations: 44.45 kB / 415.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004805/0.3063, allocations: 303.6 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.915e-05/0.3064, allocations: 54.62 kB / 415.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.871e-05/0.3065, allocations: 24.38 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004718/0.3069, allocations: 280.3 kB / 416.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.307, allocations: 0 / 416.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.307, allocations: 8 kB / 416.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.307, allocations: 8 kB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003575/0.3074, allocations: 165.6 kB / 416.3 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.3097, allocations: 1.048 MB / 417.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/0.3101, allocations: 114.5 kB / 417.4 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.3103, allocations: 84.75 kB / 417.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.3103, allocations: 8 kB / 417.5 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.3104, allocations: 30.56 kB / 417.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 3.466e-06/0.3104, allocations: 4 kB / 417.6 MB, free: 8.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001052/0.3114, allocations: 448.9 kB / 418 MB, free: 8.039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.452e-05/0.3115, allocations: 158.2 kB / 418.2 MB, free: 7.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.3118, allocations: 270.6 kB / 418.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.3119, allocations: 29.7 kB / 418.4 MB, free: 7.535 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.312, allocations: 184 kB / 418.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.853e-05/0.312, allocations: 47.36 kB / 418.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.3122, allocations: 45.69 kB / 418.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3123, allocations: 330.8 kB / 419 MB, free: 6.922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.3125, allocations: 91.95 kB / 419.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.3127, allocations: 132.5 kB / 419.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003229/0.313, allocations: 168 kB / 419.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.313, allocations: 0 / 419.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007521/0.3206, allocations: 0.9003 MB / 420.3 MB, free: 5.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.3206, allocations: 8 kB / 420.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3206, allocations: 0 / 420.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009106/0.3297, allocations: 0.8326 MB / 421.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.3299, allocations: 15.98 kB / 421.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008916/0.3388, allocations: 4.888 MB / 426.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/0.3392, allocations: 23.88 kB / 426.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.3392, allocations: 11.92 kB / 426.1 MB, free: 15.53 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.0001845/0.3394, allocations: 141.8 kB / 426.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.505e-05/0.3395, allocations: 27.72 kB / 426.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.948e-05/0.3395, allocations: 25.83 kB / 426.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3395, allocations: 4.094 kB / 426.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3396, allocations: 3.984 kB / 426.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3396, allocations: 0 / 426.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000899/0.3405, allocations: 0.6254 MB / 426.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3405, allocations: 0 / 426.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.3406, allocations: 27.97 kB / 427 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000172/0.3408, allocations: 41.69 kB / 427 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.3408, allocations: 12.03 kB / 427 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001993/0.3428, allocations: 2.927 MB / 429.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3428, allocations: 0 / 429.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004879/0.3433, allocations: 321.7 kB / 430.2 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.07e-05/0.3434, allocations: 104.8 kB / 430.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.101e-05/0.3435, allocations: 8 kB / 430.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.3437, allocations: 7.984 kB / 430.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.661e-05/0.3437, allocations: 31.97 kB / 430.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.3438, allocations: 4 kB / 430.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002034/0.344, allocations: 205.9 kB / 430.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.344, allocations: 0 / 430.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004848/0.3445, allocations: 99.78 kB / 430.7 MB, free: 10.53 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.0007868/0.3453, allocations: 0.8468 MB / 431.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.3467, allocations: 0.5401 MB / 432.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3467, allocations: 4.062 kB / 432.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000436/0.3472, allocations: 325.2 kB / 432.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.3476, allocations: 40.53 kB / 432.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01736/0.365, allocations: 3.985 MB / 436.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.3654, allocations: 0.7675 MB / 437.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.3656, allocations: 25.94 kB / 437.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.3657, allocations: 95.02 kB / 437.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3657, allocations: 0 / 437.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03379/0.3995, allocations: 10.06 MB / 447.4 MB, free: 9.844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.27, allocations: 15.45 kB / 447.4 MB, free: 9.832 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)