Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 107.5 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 212.3 kB / 24.51 MB, free: 3.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.391/1.391, allocations: 230.6 MB / 258.3 MB, free: 7.723 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 51.92 kB / 378.5 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2711, allocations: 53.38 MB / 431.9 MB, free: 6.586 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004288/0.2754, allocations: 2.652 MB / 434.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.277, allocations: 0.8259 MB / 435.4 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.2771, allocations: 4 kB / 435.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.2772, allocations: 43.5 kB / 435.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003219/0.2776, allocations: 123.1 kB / 435.5 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004071/0.278, allocations: 199.7 kB / 435.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005207/0.2785, allocations: 482.3 kB / 436.2 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.2787, allocations: 86.11 kB / 436.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003121/0.279, allocations: 199.3 kB / 436.5 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000335/0.2793, allocations: 223.1 kB / 436.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.824e-05/0.2794, allocations: 40 kB / 436.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.2795, allocations: 51.94 kB / 436.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.179e-05/0.2796, allocations: 91.72 kB / 436.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.2798, allocations: 167.3 kB / 437 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005139/0.2803, allocations: 452.6 kB / 437.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2803, allocations: 0 / 437.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2803, allocations: 4 kB / 437.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.2803, allocations: 0 / 437.5 MB, free: 0.9688 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.001483/0.2818, allocations: 0.618 MB / 438.1 MB, free: 328 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.2818, allocations: 12.03 kB / 438.1 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.562e-05/0.2819, allocations: 8.609 kB / 438.1 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.231e-05/0.2819, allocations: 62.73 kB / 438.2 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.2821, allocations: 48.69 kB / 438.2 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004382/0.2825, allocations: 243.7 kB / 438.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.606e-05/0.2826, allocations: 76.39 kB / 438.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.495e-05/0.2827, allocations: 25.88 kB / 438.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005504/0.2832, allocations: 408.8 kB / 439 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.2832, allocations: 0 / 439 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.2833, allocations: 8 kB / 439 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.2833, allocations: 12 kB / 439 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003503/0.2836, allocations: 161.6 kB / 439.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002284/0.2859, allocations: 0.9358 MB / 440.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.2862, allocations: 106.5 kB / 440.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.2864, allocations: 68.83 kB / 440.3 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.2864, allocations: 4 kB / 440.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.2865, allocations: 38.56 kB / 440.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.2865, allocations: 0 / 440.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008969/0.2873, allocations: 287.2 kB / 440.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.234e-05/0.2874, allocations: 158.2 kB / 440.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.2878, allocations: 265.9 kB / 441 MB, free: 13.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.697e-05/0.2878, allocations: 37.7 kB / 441 MB, free: 13.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.2879, allocations: 184.3 kB / 441.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.367e-05/0.288, allocations: 43.59 kB / 441.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.2881, allocations: 57.67 kB / 441.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.2882, allocations: 338.7 kB / 441.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.2884, allocations: 79.97 kB / 441.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.2887, allocations: 242.3 kB / 442 MB, free: 12.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000365/0.2891, allocations: 165.7 kB / 442.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2891, allocations: 0 / 442.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.008211/0.2973, allocations: 0.8836 MB / 443 MB, free: 11.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.2973, allocations: 8 kB / 443 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.2973, allocations: 0 / 443 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009826/0.3071, allocations: 0.8365 MB / 443.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.3073, allocations: 15.98 kB / 443.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009349/0.3166, allocations: 4.603 MB / 448.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/0.3169, allocations: 31.91 kB / 448.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.317, allocations: 7.984 kB / 448.5 MB, free: 5.359 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.000175/0.3171, allocations: 141.8 kB / 448.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.313e-05/0.3172, allocations: 27.8 kB / 448.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.318e-05/0.3172, allocations: 25.77 kB / 448.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.3173, allocations: 0 / 448.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.3173, allocations: 4 kB / 448.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3173, allocations: 0 / 448.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009221/0.3182, allocations: 0.5545 MB / 449.3 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3182, allocations: 4 kB / 449.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.3183, allocations: 19.98 kB / 449.3 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001859/0.3185, allocations: 57.64 kB / 449.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.3185, allocations: 8 kB / 449.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/0.3207, allocations: 2.716 MB / 452.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3207, allocations: 8 kB / 452.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005278/0.3212, allocations: 309.8 kB / 452.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.692e-05/0.3213, allocations: 27.84 kB / 452.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.552e-05/0.3213, allocations: 0 / 452.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.3215, allocations: 15.98 kB / 452.4 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.986e-05/0.3216, allocations: 31.89 kB / 452.4 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.3216, allocations: 8 kB / 452.4 MB, free: 1.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002193/0.3218, allocations: 197.2 kB / 452.6 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3218, allocations: 3.938 kB / 452.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000495/0.3223, allocations: 103.8 kB / 452.7 MB, free: 0.7891 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.0008343/0.3232, allocations: 0.8503 MB / 453.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.3247, allocations: 0.5283 MB / 454.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.3247, allocations: 4 kB / 454.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004559/0.3251, allocations: 319.9 kB / 454.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000428/0.3256, allocations: 52.53 kB / 454.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/0.3446, allocations: 3.972 MB / 458.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.3449, allocations: 154.8 kB / 458.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.345, allocations: 25.95 kB / 458.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.3452, allocations: 91.39 kB / 458.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of SimCode: time 1.392e-06/0.3452, allocations: 0 / 458.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03991/0.3851, allocations: 11.05 MB / 469.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.6, allocations: 3.938 kB / 469.8 MB, free: 15.74 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine_fmu --startTime=0 --stopTime=0.025 --stepSize=1e-06 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.488397266017273] Failed to read output from testmodel.py, exit status != 0: ['time', 'source.i', 'load.v', 'load.i'] 13.776623275014572 13.791900587 13.50861172 Calling exit ...