Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.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.001882/0.001882, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002389/0.002389, allocations: 209.5 kB / 23.73 MB, free: 4.387 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.458/1.458, 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.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 48.02 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.261, allocations: 53.37 MB / 431.1 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004889/0.2659, allocations: 2.704 MB / 433.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.2678, allocations: 0.8612 MB / 434.7 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002905/0.2681, allocations: 11.94 kB / 434.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002234/0.2683, allocations: 47.45 kB / 434.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005441/0.2688, allocations: 127.1 kB / 434.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005866/0.2694, allocations: 227.7 kB / 435.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009466/0.2704, allocations: 0.5334 MB / 435.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.2707, allocations: 75.56 kB / 435.7 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004761/0.2712, allocations: 203.3 kB / 435.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005607/0.2717, allocations: 203.1 kB / 436.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.2719, allocations: 48 kB / 436.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.272, allocations: 48 kB / 436.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.2722, allocations: 99.66 kB / 436.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002931/0.2725, allocations: 171.2 kB / 436.4 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008056/0.2733, allocations: 0.4924 MB / 436.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.2733, allocations: 7.984 kB / 436.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.2733, allocations: 0 / 436.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.825e-05/0.2733, allocations: 0 / 436.9 MB, free: 1.055 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001963/0.2753, allocations: 0.6765 MB / 437.6 MB, free: 356 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2753, allocations: 8.031 kB / 437.6 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.213e-05/0.2754, allocations: 62.72 kB / 437.7 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.2755, allocations: 40.7 kB / 437.7 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005929/0.2761, allocations: 273.5 kB / 438 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.2763, allocations: 135.9 kB / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.575e-05/0.2763, allocations: 32.31 kB / 438.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005469/0.2769, allocations: 360 kB / 438.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.2769, allocations: 7.891 kB / 438.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.2769, allocations: 12 kB / 438.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.2769, allocations: 4 kB / 438.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000352/0.2773, allocations: 169.2 kB / 438.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00277/0.2801, allocations: 1.321 MB / 440 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.2803, allocations: 105.2 kB / 440.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.2804, allocations: 53.81 kB / 440.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.2804, allocations: 0 / 440.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.2804, allocations: 38.56 kB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.2804, allocations: 0 / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003054/0.2835, allocations: 0.918 MB / 441.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.01e-05/0.2836, allocations: 114.7 kB / 441.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003994/0.284, allocations: 328.4 kB / 441.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.088e-05/0.284, allocations: 33.7 kB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.2842, allocations: 208.4 kB / 441.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.83e-05/0.2842, allocations: 51.56 kB / 441.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.2844, allocations: 77.61 kB / 441.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.2845, allocations: 338.8 kB / 442.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.2849, allocations: 155.9 kB / 442.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00045/0.2854, allocations: 276.6 kB / 442.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006904/0.286, allocations: 354.1 kB / 443 MB, free: 10.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2861, allocations: 0 / 443 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009035/0.2951, allocations: 1.306 MB / 444.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.2951, allocations: 8 kB / 444.3 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.2951, allocations: 0 / 444.3 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01045/0.3056, allocations: 1.161 MB / 445.5 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004601/0.306, allocations: 67.86 kB / 445.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.3174, allocations: 5.036 MB / 450.6 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005782/0.318, allocations: 35.91 kB / 450.6 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.318, allocations: 15.98 kB / 450.6 MB, free: 2.648 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (integrator2.local_reset,integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,1), (4,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002084/0.3182, allocations: 149.7 kB / 450.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.921e-05/0.3183, allocations: 27.81 kB / 450.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.3184, allocations: 30.61 kB / 450.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3184, allocations: 192 / 450.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3184, allocations: 8 kB / 450.9 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.3184, allocations: 11.92 kB / 450.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.3195, allocations: 0.6608 MB / 451.5 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.3195, allocations: 0 / 451.5 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003549/0.3198, allocations: 51.94 kB / 451.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.3198, allocations: 7.969 kB / 451.6 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.3199, allocations: 7.969 kB / 451.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.3199, allocations: 8 kB / 451.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3199, allocations: 0 / 451.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008786/0.3208, allocations: 0.5171 MB / 452.1 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-05/0.3208, allocations: 27.84 kB / 452.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/0.3209, allocations: 3.938 kB / 452.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000392/0.3213, allocations: 36.03 kB / 452.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.12e-05/0.3213, allocations: 11.97 kB / 452.2 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.3213, allocations: 7.984 kB / 452.2 MB, free: 1.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002762/0.3216, allocations: 223.1 kB / 452.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3216, allocations: 3.938 kB / 452.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005517/0.3222, allocations: 100 kB / 452.5 MB, free: 0.6953 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator2.y,integrator1.y) * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001209/0.3234, allocations: 1.055 MB / 453.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00207/0.3255, allocations: 0.7393 MB / 454.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3255, allocations: 0 / 454.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.3257, allocations: 95.88 kB / 454.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005692/0.3263, allocations: 82.61 kB / 454.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02129/0.3476, allocations: 5.197 MB / 459.7 MB, free: 9.312 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.3478, allocations: 173.1 kB / 459.9 MB, free: 9.129 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000275/0.348, allocations: 30.97 kB / 459.9 MB, free: 9.098 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000253/0.3483, allocations: 111.4 kB / 460 MB, free: 8.988 MB / 366.1 MB Notification: Performance of SimCode: time 2.334e-06/0.3483, allocations: 0 / 460 MB, free: 8.988 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04703/0.3953, allocations: 13.65 MB / 473.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.32, allocations: 14.44 kB / 473.7 MB, free: 11.53 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-07 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemonstrateLightning/DemonstrateLightning.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv. Warning: Get data of variable Time from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv failed! Error: Could not read variable currentSensor1.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv. Warning: Get data of variable currentSensor1.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv failed! Error: Could not read variable currentSensor2.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv. Warning: Get data of variable currentSensor2.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv failed! Error: Could not read variable der1.y in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv. Warning: Get data of variable der1.y from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv failed! Error: Could not read variable der2.y in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv. Warning: Get data of variable der2.y from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.031306855846196]