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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00128/0.00128, allocations: 122.5 kB / 18.51 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 215.2 kB / 21.46 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.424/1.424, allocations: 230.5 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001922/0.001922, allocations: 71.83 kB / 373.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1136, allocations: 53.33 MB / 427 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004519/0.1181, allocations: 2.859 MB / 429.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.1198, allocations: 0.8609 MB / 430.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.1199, allocations: 4 kB / 430.8 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.1201, allocations: 47.5 kB / 430.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003342/0.1204, allocations: 131.1 kB / 430.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004579/0.1209, allocations: 187.7 kB / 431.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005432/0.1214, allocations: 486.3 kB / 431.6 MB, free: 284 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/0.1216, allocations: 85.19 kB / 431.7 MB, free: 192 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2285/0.3501, allocations: 192.5 kB / 431.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000573/0.3507, allocations: 221.3 kB / 432.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.3508, allocations: 44.38 kB / 432.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.351, allocations: 47.08 kB / 432.2 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.987e-05/0.3511, allocations: 92.38 kB / 432.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.3513, allocations: 187.5 kB / 432.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005363/0.3518, allocations: 456.3 kB / 432.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3518, allocations: 3.766 kB / 432.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3518, allocations: 1.219 kB / 432.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.3518, allocations: 3.938 kB / 432.9 MB, free: 7.68 MB / 350.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.001376/0.3532, allocations: 0.693 MB / 433.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3532, allocations: 9.906 kB / 433.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.292e-05/0.3533, allocations: 59.06 kB / 433.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.3535, allocations: 47.38 kB / 433.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.3539, allocations: 305.8 kB / 434 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.743e-05/0.3539, allocations: 48.8 kB / 434.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.579e-05/0.354, allocations: 25.22 kB / 434.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003959/0.3544, allocations: 283.9 kB / 434.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3544, allocations: 1.375 kB / 434.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.3544, allocations: 8.469 kB / 434.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3544, allocations: 5.125 kB / 434.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003138/0.3547, allocations: 171 kB / 434.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002054/0.3568, allocations: 1.039 MB / 435.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.3571, allocations: 116.4 kB / 435.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.3573, allocations: 75.69 kB / 435.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.3573, allocations: 1.219 kB / 435.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.576e-05/0.3573, allocations: 36.92 kB / 435.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.3573, allocations: 0 / 435.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009259/0.3582, allocations: 437 kB / 436.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.3583, allocations: 156.3 kB / 436.4 MB, free: 5.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.3586, allocations: 277.9 kB / 436.7 MB, free: 5.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.3586, allocations: 31.31 kB / 436.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.48e-05/0.3587, allocations: 182.9 kB / 436.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.977e-05/0.3587, allocations: 52.08 kB / 436.9 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.868e-05/0.3588, allocations: 50.56 kB / 437 MB, free: 5.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.189e-05/0.3589, allocations: 331.7 kB / 437.3 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001916/0.3591, allocations: 87.19 kB / 437.4 MB, free: 5.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.3593, allocations: 141.2 kB / 437.5 MB, free: 5.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.3596, allocations: 163.3 kB / 437.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3596, allocations: 2.219 kB / 437.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007369/0.367, allocations: 0.8857 MB / 438.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.367, allocations: 12.42 kB / 438.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.367, allocations: 0 / 438.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008663/0.3756, allocations: 0.8291 MB / 439.4 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.3758, allocations: 21.33 kB / 439.4 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008061/0.3839, allocations: 4.89 MB / 444.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.3842, allocations: 25.36 kB / 444.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.3842, allocations: 10.48 kB / 444.3 MB, free: 1.387 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.0001641/0.3844, allocations: 146.5 kB / 444.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.775e-05/0.3845, allocations: 24.09 kB / 444.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.627e-05/0.3845, allocations: 25.61 kB / 444.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.3845, allocations: 2.516 kB / 444.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.3845, allocations: 5.281 kB / 444.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.3845, allocations: 1.375 kB / 444.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008604/0.3854, allocations: 0.616 MB / 445.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.3854, allocations: 0 / 445.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.3855, allocations: 24.64 kB / 445.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001864/0.3857, allocations: 49.58 kB / 445.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.3857, allocations: 5.562 kB / 445.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002173/0.3879, allocations: 2.933 MB / 448.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3879, allocations: 4.656 kB / 448.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005616/0.3884, allocations: 314.1 kB / 448.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.3885, allocations: 108.7 kB / 448.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.3886, allocations: 5.734 kB / 448.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.3888, allocations: 15.33 kB / 448.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.3889, allocations: 25.02 kB / 448.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.3889, allocations: 10.38 kB / 448.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002582/0.3892, allocations: 197.3 kB / 448.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3892, allocations: 0 / 448.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006067/0.3898, allocations: 96.14 kB / 448.9 MB, free: 13.32 MB / 366.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.0009753/0.3907, allocations: 0.8529 MB / 449.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.3924, allocations: 0.5379 MB / 450.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3924, allocations: 0 / 450.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005294/0.3929, allocations: 320.1 kB / 450.6 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004451/0.3933, allocations: 44.64 kB / 450.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01799/0.4113, allocations: 3.971 MB / 454.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005327/0.4118, allocations: 0.7618 MB / 455.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001993/0.412, allocations: 27.33 kB / 455.4 MB, free: 9.309 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.4122, allocations: 89.84 kB / 455.5 MB, free: 9.242 MB / 366.1 MB Notification: Performance of SimCode: time 1.353e-06/0.4122, allocations: 0 / 455.5 MB, free: 9.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06257/0.4748, allocations: 9.914 MB / 465.4 MB, free: 5.238 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.63, allocations: 12.2 kB / 465.5 MB, free: 5.23 MB / 366.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.093258996028453] Failed to read output from testmodel.py, exit status != 0: ['time', 'source.i', 'load.v', 'load.i'] 12.729005059227347 12.748895908 12.394108276 Calling exit ...