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.0021/0.0021, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002555/0.002555, allocations: 212.6 kB / 23.72 MB, free: 4.531 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.488/1.488, allocations: 230.6 MB / 257.5 MB, free: 7.797 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 51.94 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2599, allocations: 53.36 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004351/0.2642, allocations: 2.663 MB / 433.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.2659, allocations: 0.8181 MB / 434.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.2661, allocations: 4 kB / 434.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.2663, allocations: 43.56 kB / 434.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003792/0.2666, allocations: 119.1 kB / 434.8 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004536/0.2671, allocations: 207.6 kB / 435 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000545/0.2676, allocations: 482.3 kB / 435.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.2678, allocations: 86.11 kB / 435.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003518/0.2682, allocations: 195.3 kB / 435.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003917/0.2686, allocations: 223.2 kB / 435.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.388e-05/0.2686, allocations: 40 kB / 436 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.774e-05/0.2687, allocations: 48 kB / 436 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.5e-05/0.2688, allocations: 99.59 kB / 436.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000238/0.2691, allocations: 163.3 kB / 436.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005592/0.2696, allocations: 456.1 kB / 436.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.2696, allocations: 4 kB / 436.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2696, allocations: 0 / 436.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.2697, allocations: 3.938 kB / 436.7 MB, free: 1.004 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.001609/0.2713, allocations: 0.6258 MB / 437.3 MB, free: 356 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.2713, allocations: 8.031 kB / 437.4 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.773e-05/0.2714, allocations: 54.73 kB / 437.4 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002051/0.2716, allocations: 48.69 kB / 437.5 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005887/0.2722, allocations: 241.5 kB / 437.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.907e-05/0.2723, allocations: 76.39 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.359e-05/0.2723, allocations: 24.38 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005952/0.2729, allocations: 404.8 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.2729, allocations: 4 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.273, allocations: 15.98 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.273, allocations: 7.938 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003734/0.2734, allocations: 161.7 kB / 438.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002429/0.2758, allocations: 0.924 MB / 439.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.2761, allocations: 118.4 kB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.2763, allocations: 68.83 kB / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.2763, allocations: 4 kB / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.2764, allocations: 30.56 kB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.2764, allocations: 4 kB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009642/0.2773, allocations: 283.3 kB / 439.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.2775, allocations: 162.2 kB / 439.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003474/0.2778, allocations: 273.8 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.615e-05/0.2778, allocations: 29.7 kB / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.278, allocations: 176.3 kB / 440.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.287e-05/0.2781, allocations: 59.52 kB / 440.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.2782, allocations: 49.67 kB / 440.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.2783, allocations: 334.8 kB / 440.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001991/0.2785, allocations: 79.97 kB / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003337/0.2789, allocations: 246.3 kB / 441.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003704/0.2793, allocations: 169.6 kB / 441.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2793, allocations: 0 / 441.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.009127/0.2884, allocations: 0.8836 MB / 442.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.2884, allocations: 4 kB / 442.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.2884, allocations: 0 / 442.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0105/0.2989, allocations: 0.8326 MB / 443.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.2991, allocations: 23.92 kB / 443.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009986/0.3091, allocations: 4.604 MB / 447.7 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000339/0.3094, allocations: 31.86 kB / 447.7 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.927e-05/0.3094, allocations: 11.98 kB / 447.7 MB, free: 5.406 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.000183/0.3096, allocations: 137.7 kB / 447.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.152e-05/0.3097, allocations: 23.86 kB / 447.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.856e-05/0.3097, allocations: 29.7 kB / 447.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3097, allocations: 4 kB / 447.9 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3097, allocations: 0 / 447.9 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3097, allocations: 4.062 kB / 447.9 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000993/0.3107, allocations: 0.5623 MB / 448.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3107, allocations: 0 / 448.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.3109, allocations: 19.98 kB / 448.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002159/0.3111, allocations: 49.7 kB / 448.5 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.3111, allocations: 8 kB / 448.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00234/0.3134, allocations: 2.716 MB / 451.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3134, allocations: 0 / 451.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005482/0.314, allocations: 309.8 kB / 451.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.768e-05/0.314, allocations: 31.73 kB / 451.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.809e-05/0.3141, allocations: 4 kB / 451.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.3143, allocations: 20.08 kB / 451.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.377e-05/0.3144, allocations: 27.89 kB / 451.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.3144, allocations: 15.92 kB / 451.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002253/0.3146, allocations: 193.2 kB / 451.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3146, allocations: 0 / 451.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005725/0.3152, allocations: 99.83 kB / 452 MB, free: 0.8438 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.0009234/0.3161, allocations: 0.8532 MB / 452.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.3178, allocations: 0.5361 MB / 453.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3178, allocations: 0 / 453.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004706/0.3183, allocations: 321.4 kB / 453.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000459/0.3187, allocations: 52.52 kB / 453.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02101/0.3397, allocations: 3.971 MB / 457.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.3399, allocations: 150.9 kB / 457.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001759/0.3401, allocations: 25.94 kB / 457.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.3403, allocations: 91.39 kB / 457.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3403, allocations: 0 / 457.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04963/0.3899, allocations: 11.6 MB / 469.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.3, allocations: 13.56 kB / 469.6 MB, free: 15.2 MB / 382.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] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Lines/LightningLosslessTransmissionLine/LightningLosslessTransmissionLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.362911967997206]