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.0008505/0.0008505, allocations: 83.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008334/0.0008334, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.9006/0.9006, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.673e-06/1.673e-06, allocations: 0 / 324.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.554e-05/2.721e-05, allocations: 11.77 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.003188/0.003215, allocations: 2.665 MB / 327.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.004368, allocations: 0.8335 MB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.004491, allocations: 4 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.004619, allocations: 43.52 kB / 328.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002786/0.004898, allocations: 119.1 kB / 328.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.005221, allocations: 207.5 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003319/0.005553, allocations: 0.4942 MB / 329 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.005716, allocations: 74.12 kB / 329 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002915/0.006007, allocations: 283.4 kB / 329.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.006204, allocations: 167.5 kB / 329.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.463e-05/0.006248, allocations: 44 kB / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.795e-05/0.006316, allocations: 52 kB / 329.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.337e-05/0.00638, allocations: 95.64 kB / 329.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.054e-05/0.00647, allocations: 135.7 kB / 329.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003768/0.006847, allocations: 482.5 kB / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.006851, allocations: 0 / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.006853, allocations: 4 kB / 330.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.006858, allocations: 0 / 330.3 MB, free: 10.19 MB / 298.7 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.0009067/0.007764, allocations: 0.6181 MB / 330.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.007808, allocations: 11.97 kB / 330.9 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.237e-05/0.00786, allocations: 58.72 kB / 331 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.008007, allocations: 48.69 kB / 331 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.008346, allocations: 244.7 kB / 331.3 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.5e-05/0.008421, allocations: 76.45 kB / 331.3 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.00845, allocations: 24.38 kB / 331.3 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003751/0.008825, allocations: 414.3 kB / 331.8 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.008836, allocations: 192 / 331.8 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.008858, allocations: 15.92 kB / 331.8 MB, free: 8.574 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.008865, allocations: 4 kB / 331.8 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000227/0.009092, allocations: 161.9 kB / 331.9 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.01043, allocations: 0.9252 MB / 332.9 MB, free: 7.418 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.01067, allocations: 106.5 kB / 333 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001343/0.0108, allocations: 72.83 kB / 333 MB, free: 7.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.01082, allocations: 4 kB / 333 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.01084, allocations: 38.5 kB / 333.1 MB, free: 7.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.024e-06/0.01085, allocations: 3.938 kB / 333.1 MB, free: 7.176 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006026/0.01145, allocations: 287.3 kB / 333.4 MB, free: 6.883 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.01151, allocations: 158.2 kB / 333.5 MB, free: 6.691 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.01173, allocations: 273.8 kB / 333.8 MB, free: 6.418 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.01175, allocations: 33.7 kB / 333.8 MB, free: 6.379 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.096e-05/0.01184, allocations: 176.3 kB / 334 MB, free: 6.199 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.746e-05/0.01187, allocations: 51.58 kB / 334 MB, free: 6.148 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.75e-05/0.01194, allocations: 53.67 kB / 334.1 MB, free: 6.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.825e-05/0.01202, allocations: 334.8 kB / 334.4 MB, free: 5.754 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.01215, allocations: 87.89 kB / 334.5 MB, free: 5.668 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.01233, allocations: 239.9 kB / 334.7 MB, free: 5.391 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.01254, allocations: 157.6 kB / 334.9 MB, free: 5.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.01255, allocations: 3.984 kB / 334.9 MB, free: 5.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.003367/0.01591, allocations: 0.881 MB / 335.8 MB, free: 4.332 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.01593, allocations: 8 kB / 335.8 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.01594, allocations: 0 / 335.8 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003952/0.01989, allocations: 0.8287 MB / 336.6 MB, free: 3.488 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.518e-05/0.01997, allocations: 23.91 kB / 336.6 MB, free: 3.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005296/0.02526, allocations: 4.61 MB / 341.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.02545, allocations: 31.95 kB / 341.3 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.02546, allocations: 8 kB / 341.3 MB, free: 14.59 MB / 314.7 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.0001438/0.02561, allocations: 145.9 kB / 341.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.78e-05/0.02564, allocations: 27.84 kB / 341.5 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.654e-05/0.02567, allocations: 25.78 kB / 341.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.02567, allocations: 0 / 341.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.02568, allocations: 0 / 341.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.02568, allocations: 7.984 kB / 341.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005932/0.02627, allocations: 0.5468 MB / 342 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.02628, allocations: 4.031 kB / 342 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.28e-05/0.02634, allocations: 19.98 kB / 342.1 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001159/0.02646, allocations: 61.55 kB / 342.1 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.02647, allocations: 0 / 342.1 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.02772, allocations: 2.712 MB / 344.8 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.02772, allocations: 3.938 kB / 344.8 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003073/0.02803, allocations: 309.8 kB / 345.1 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.516e-05/0.02807, allocations: 31.8 kB / 345.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.02809, allocations: 0 / 345.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.02819, allocations: 23.92 kB / 345.2 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.505e-05/0.02826, allocations: 27.95 kB / 345.2 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.02827, allocations: 8 kB / 345.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001415/0.02841, allocations: 197.2 kB / 345.4 MB, free: 10.13 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02841, allocations: 0 / 345.4 MB, free: 10.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003713/0.02878, allocations: 95.83 kB / 345.5 MB, free: 10.04 MB / 314.7 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.0005046/0.02929, allocations: 0.8477 MB / 346.4 MB, free: 9.148 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008637/0.03015, allocations: 0.5477 MB / 346.9 MB, free: 8.574 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.03015, allocations: 3.938 kB / 346.9 MB, free: 8.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.03038, allocations: 309.3 kB / 347.2 MB, free: 8.242 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.0307, allocations: 52.47 kB / 347.3 MB, free: 8.191 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008595/0.03929, allocations: 3.941 MB / 351.2 MB, free: 4.148 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.03943, allocations: 162.8 kB / 351.4 MB, free: 3.969 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.03954, allocations: 25.94 kB / 351.4 MB, free: 3.941 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.03965, allocations: 92.45 kB / 351.5 MB, free: 3.852 MB / 314.7 MB Notification: Performance of SimCode: time 2.194e-06/0.03965, allocations: 4 kB / 351.5 MB, free: 3.848 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02912/0.06877, allocations: 11.61 MB / 363.1 MB, free: 8.414 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.944/8.012, allocations: 5 kB / 363.1 MB, free: 8.41 MB / 330.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Lines/LightningLosslessTransmissionLine/LightningLosslessTransmissionLine.csv","/var/lib/jenkins/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: 10.022864011116326]