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.001735/0.001735, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002082/0.002082, allocations: 219 kB / 21.46 MB, free: 1.586 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.415/1.415, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.001513/0.001513, allocations: 55.86 kB / 373.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 53.33 MB / 427 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004253/0.1127, allocations: 2.863 MB / 429.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.1143, allocations: 0.8647 MB / 430.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.1144, allocations: 4 kB / 430.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.1146, allocations: 35.58 kB / 430.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003192/0.1149, allocations: 131.1 kB / 430.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004088/0.1153, allocations: 195.6 kB / 431.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004885/0.1158, allocations: 486.3 kB / 431.6 MB, free: 160 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.116, allocations: 85.2 kB / 431.7 MB, free: 68 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2241/0.3402, allocations: 187.4 kB / 431.9 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000636/0.3408, allocations: 215.5 kB / 432.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.3409, allocations: 43.62 kB / 432.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001504/0.3411, allocations: 51.89 kB / 432.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.3412, allocations: 94.53 kB / 432.3 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/0.3414, allocations: 188.1 kB / 432.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005872/0.342, allocations: 461 kB / 432.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.342, allocations: 0 / 432.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.342, allocations: 3.438 kB / 432.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.342, allocations: 0 / 432.9 MB, free: 7.633 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.001391/0.3434, allocations: 0.6868 MB / 433.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.3434, allocations: 10.5 kB / 433.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.748e-05/0.3434, allocations: 8.156 kB / 433.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.441e-05/0.3435, allocations: 59.55 kB / 433.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.3436, allocations: 47.14 kB / 433.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.3441, allocations: 312.3 kB / 434 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.422e-05/0.3441, allocations: 48.75 kB / 434.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.551e-05/0.3442, allocations: 22.75 kB / 434.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004312/0.3446, allocations: 283.2 kB / 434.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.3446, allocations: 0 / 434.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/0.3446, allocations: 11.72 kB / 434.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3446, allocations: 3.688 kB / 434.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003076/0.345, allocations: 167.1 kB / 434.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.3471, allocations: 1.042 MB / 435.6 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000296/0.3474, allocations: 113.3 kB / 435.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.3476, allocations: 80.38 kB / 435.8 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.3476, allocations: 9.422 kB / 435.8 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.3477, allocations: 35.5 kB / 435.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.3477, allocations: 0 / 435.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009358/0.3486, allocations: 437.9 kB / 436.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.3486, allocations: 160.5 kB / 436.4 MB, free: 5.809 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002962/0.3489, allocations: 272.6 kB / 436.7 MB, free: 5.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.349, allocations: 30.36 kB / 436.7 MB, free: 5.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.758e-05/0.3491, allocations: 181.6 kB / 436.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.447e-05/0.3491, allocations: 58.23 kB / 436.9 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.912e-05/0.3492, allocations: 47.66 kB / 437 MB, free: 5.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.246e-05/0.3493, allocations: 331.2 kB / 437.3 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.3494, allocations: 87.59 kB / 437.4 MB, free: 5.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.3496, allocations: 133.1 kB / 437.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003132/0.35, allocations: 165.2 kB / 437.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.35, allocations: 0 / 437.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007524/0.3575, allocations: 0.8877 MB / 438.6 MB, free: 5.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3575, allocations: 9.375 kB / 438.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.3575, allocations: 0.75 kB / 438.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009255/0.3668, allocations: 0.8236 MB / 439.4 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.3669, allocations: 17.44 kB / 439.4 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0091/0.376, allocations: 4.898 MB / 444.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003745/0.3764, allocations: 25.2 kB / 444.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.64e-05/0.3764, allocations: 10.64 kB / 444.4 MB, free: 1.348 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.0001688/0.3766, allocations: 146.3 kB / 444.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.611e-05/0.3767, allocations: 23.3 kB / 444.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.648e-05/0.3767, allocations: 26.64 kB / 444.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3767, allocations: 2.188 kB / 444.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.3767, allocations: 1.156 kB / 444.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3767, allocations: 0.7031 kB / 444.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008978/0.3776, allocations: 0.6204 MB / 445.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3776, allocations: 1.062 kB / 445.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.3777, allocations: 19.72 kB / 445.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001885/0.3779, allocations: 60.42 kB / 445.2 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.378, allocations: 4.688 kB / 445.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002316/0.3803, allocations: 2.936 MB / 448.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3803, allocations: 3.844 kB / 448.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005605/0.3808, allocations: 314.3 kB / 448.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.912e-05/0.3809, allocations: 106.4 kB / 448.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.381, allocations: 2.969 kB / 448.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.3812, allocations: 13.83 kB / 448.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.824e-05/0.3813, allocations: 32.33 kB / 448.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.3813, allocations: 6.828 kB / 448.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000241/0.3815, allocations: 196.1 kB / 448.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3815, allocations: 0 / 448.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005706/0.3821, allocations: 97.08 kB / 448.9 MB, free: 13.28 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.0008869/0.383, allocations: 0.8443 MB / 449.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.3846, allocations: 0.5403 MB / 450.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3846, allocations: 4.188 kB / 450.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004538/0.385, allocations: 310.1 kB / 450.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.3855, allocations: 56.08 kB / 450.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01819/0.4037, allocations: 3.982 MB / 454.7 MB, free: 9.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/0.4041, allocations: 0.7611 MB / 455.4 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001757/0.4043, allocations: 27.73 kB / 455.5 MB, free: 9.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.4045, allocations: 90.33 kB / 455.6 MB, free: 9.195 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4045, allocations: 1.125 kB / 455.6 MB, free: 9.195 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03736/0.4418, allocations: 9.945 MB / 465.5 MB, free: 5.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.78, allocations: 6.156 kB / 465.5 MB, free: 5.125 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.776895076036453] Failed to read output from testmodel.py, exit status != 0: ['time', 'source.i', 'load.v', 'load.i'] 12.937565202999394 12.960664649 12.613996944 Calling exit ...