Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,fileNamePrefix="Modelica_4_1_0-beta_om_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.001813/0.001813, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002232/0.002232, allocations: 199.9 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.414/1.414, allocations: 227.7 MB / 247.2 MB, free: 10.25 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 71.89 kB / 358.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2688, allocations: 50.55 MB / 409.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.005152/0.274, allocations: 2.861 MB / 412 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.2759, allocations: 0.8454 MB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.2761, allocations: 7.938 kB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.2763, allocations: 39.58 kB / 412.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003529/0.2766, allocations: 119.1 kB / 413 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.2771, allocations: 195.6 kB / 413.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005751/0.2776, allocations: 490.3 kB / 413.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.2779, allocations: 117.2 kB / 413.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002877/0.2782, allocations: 191.3 kB / 413.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00033/0.2785, allocations: 215.2 kB / 414.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.182e-05/0.2786, allocations: 44 kB / 414.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.2787, allocations: 52 kB / 414.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.815e-05/0.2788, allocations: 91.7 kB / 414.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002578/0.2791, allocations: 187.1 kB / 414.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006824/0.2798, allocations: 461.3 kB / 415 MB, free: 11.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2798, allocations: 0 / 415 MB, free: 11.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2798, allocations: 4 kB / 415 MB, free: 11.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2798, allocations: 0 / 415 MB, free: 11.49 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.001531/0.2814, allocations: 0.6972 MB / 415.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.2814, allocations: 12.03 kB / 415.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.283e-05/0.2815, allocations: 58.67 kB / 415.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000186/0.2817, allocations: 44.69 kB / 415.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004961/0.2822, allocations: 307.8 kB / 416.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.03e-05/0.2823, allocations: 54.69 kB / 416.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/0.2823, allocations: 20.38 kB / 416.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004912/0.2828, allocations: 284.3 kB / 416.4 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.2829, allocations: 0 / 416.4 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/0.2829, allocations: 8 kB / 416.4 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.2829, allocations: 8 kB / 416.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003533/0.2833, allocations: 161.7 kB / 416.6 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.2856, allocations: 1.052 MB / 417.7 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/0.286, allocations: 122.5 kB / 417.8 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/0.2862, allocations: 80.81 kB / 417.9 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.2862, allocations: 4 kB / 417.9 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.2862, allocations: 34.56 kB / 417.9 MB, free: 8.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.843e-06/0.2863, allocations: 0 / 417.9 MB, free: 8.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001047/0.2873, allocations: 441.5 kB / 418.3 MB, free: 7.867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.2874, allocations: 166.2 kB / 418.5 MB, free: 7.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003393/0.2878, allocations: 270.5 kB / 418.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.2878, allocations: 29.7 kB / 418.8 MB, free: 7.355 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.288, allocations: 176.3 kB / 419 MB, free: 7.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.917e-05/0.288, allocations: 51.59 kB / 419 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.2882, allocations: 49.67 kB / 419.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.2883, allocations: 334.8 kB / 419.4 MB, free: 6.738 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.2886, allocations: 91.91 kB / 419.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.2888, allocations: 129.1 kB / 419.6 MB, free: 6.504 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.2892, allocations: 165.7 kB / 419.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2892, allocations: 0 / 419.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007462/0.2966, allocations: 0.8912 MB / 420.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.2967, allocations: 8 kB / 420.7 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.2967, allocations: 0 / 420.7 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009018/0.3057, allocations: 0.8404 MB / 421.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.3059, allocations: 19.98 kB / 421.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009421/0.3154, allocations: 4.882 MB / 426.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.3157, allocations: 31.86 kB / 426.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.3158, allocations: 8.266 kB / 426.4 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.0002169/0.316, allocations: 149.2 kB / 426.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.706e-05/0.3161, allocations: 23.86 kB / 426.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.545e-05/0.3161, allocations: 33.84 kB / 426.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.3162, allocations: 4 kB / 426.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3162, allocations: 0 / 426.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3162, allocations: 0 / 426.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.3173, allocations: 0.6256 MB / 427.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.3173, allocations: 0 / 427.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.3174, allocations: 19.98 kB / 427.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001941/0.3176, allocations: 53.64 kB / 427.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.3176, allocations: 8 kB / 427.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002484/0.3201, allocations: 2.928 MB / 430.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3201, allocations: 0 / 430.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005689/0.3207, allocations: 325.8 kB / 430.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.3208, allocations: 100.8 kB / 430.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.428e-05/0.3209, allocations: 11.98 kB / 430.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.3211, allocations: 4 kB / 430.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.3212, allocations: 35.95 kB / 430.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.3212, allocations: 8 kB / 430.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002505/0.3215, allocations: 198 kB / 430.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3215, allocations: 0 / 430.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005361/0.322, allocations: 99.83 kB / 431 MB, free: 10.35 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.0009316/0.323, allocations: 0.8458 MB / 431.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.3245, allocations: 0.5517 MB / 432.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3246, allocations: 0 / 432.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000486/0.325, allocations: 313.3 kB / 432.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004192/0.3255, allocations: 48.58 kB / 432.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01787/0.3434, allocations: 3.988 MB / 436.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.3439, allocations: 0.7596 MB / 437.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.344, allocations: 25.94 kB / 437.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.3442, allocations: 87.39 kB / 437.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3442, allocations: 4 kB / 437.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0426/0.3868, allocations: 9.859 MB / 447.5 MB, free: 9.895 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.43, allocations: 10.47 kB / 447.5 MB, free: 9.887 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe 2>&1)