Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001424/0.001424, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001591/0.001591, allocations: 204.5 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.5 MB / 257.4 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 59.91 kB / 377.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2804, allocations: 53.41 MB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004269/0.2847, allocations: 2.711 MB / 433.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.2863, allocations: 0.8572 MB / 434.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.2864, allocations: 12 kB / 434.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001844/0.2866, allocations: 55.44 kB / 434.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003179/0.2869, allocations: 119.1 kB / 434.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003521/0.2873, allocations: 231.6 kB / 435.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000552/0.2879, allocations: 0.5335 MB / 435.7 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.288, allocations: 67.59 kB / 435.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002208/0.2882, allocations: 211.2 kB / 435.9 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.2885, allocations: 199.1 kB / 436.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.371e-05/0.2886, allocations: 48 kB / 436.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.356e-05/0.2887, allocations: 48 kB / 436.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.138e-05/0.2888, allocations: 103.6 kB / 436.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.289, allocations: 171.2 kB / 436.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005284/0.2895, allocations: 0.496 MB / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.2895, allocations: 0 / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2895, allocations: 0 / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.2895, allocations: 0 / 437 MB, free: 0.6016 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.001732/0.2912, allocations: 0.6829 MB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.2913, allocations: 11.98 kB / 437.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.726e-05/0.2914, allocations: 62.67 kB / 437.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.656e-05/0.2914, allocations: 40.7 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005518/0.292, allocations: 273.4 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.2922, allocations: 135.8 kB / 438.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.301e-05/0.2922, allocations: 33.69 kB / 438.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000535/0.2928, allocations: 356.1 kB / 438.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.2928, allocations: 3.938 kB / 438.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/0.2928, allocations: 15.98 kB / 438.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.2928, allocations: 7.938 kB / 438.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003581/0.2932, allocations: 165.2 kB / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00278/0.296, allocations: 1.337 MB / 440.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/0.2962, allocations: 105.2 kB / 440.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.2963, allocations: 45.83 kB / 440.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.406e-05/0.2963, allocations: 0 / 440.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.2963, allocations: 34.56 kB / 440.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.2963, allocations: 4 kB / 440.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003021/0.2993, allocations: 0.9296 MB / 441.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.2994, allocations: 102.8 kB / 441.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000363/0.2998, allocations: 324.5 kB / 441.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.2998, allocations: 29.7 kB / 441.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001585/0.3, allocations: 216.4 kB / 441.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.392e-05/0.3, allocations: 43.59 kB / 441.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.3002, allocations: 73.66 kB / 442 MB, free: 11.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3003, allocations: 350.7 kB / 442.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003377/0.3006, allocations: 151.9 kB / 442.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004259/0.3011, allocations: 277.5 kB / 442.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006821/0.3017, allocations: 357 kB / 443.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3017, allocations: 128 / 443.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009183/0.3109, allocations: 1.31 MB / 444.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.311, allocations: 12.06 kB / 444.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.311, allocations: 0 / 444.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01115/0.3221, allocations: 1.153 MB / 445.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004583/0.3226, allocations: 67.88 kB / 445.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/0.3337, allocations: 5.025 MB / 450.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005797/0.3343, allocations: 27.98 kB / 450.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.39e-05/0.3343, allocations: 28.09 kB / 450.7 MB, free: 2.188 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.000209/0.3345, allocations: 158.5 kB / 450.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.16e-05/0.3346, allocations: 31.91 kB / 450.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.436e-05/0.3347, allocations: 30.59 kB / 450.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3347, allocations: 0 / 450.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.3347, allocations: 0 / 450.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3347, allocations: 4 kB / 450.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.3358, allocations: 0.6764 MB / 451.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3358, allocations: 0 / 451.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.3361, allocations: 51.97 kB / 451.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3361, allocations: 3.938 kB / 451.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.344e-05/0.3361, allocations: 7.984 kB / 451.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3361, allocations: 4.078 kB / 451.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3362, allocations: 3.984 kB / 451.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008556/0.337, allocations: 0.5141 MB / 452.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.768e-05/0.3371, allocations: 31.83 kB / 452.2 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.347e-05/0.3371, allocations: 4 kB / 452.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004003/0.3375, allocations: 27.97 kB / 452.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.514e-05/0.3376, allocations: 19.91 kB / 452.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.3376, allocations: 11.92 kB / 452.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002401/0.3378, allocations: 223.1 kB / 452.5 MB, free: 328 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3378, allocations: 4 kB / 452.5 MB, free: 324 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005448/0.3384, allocations: 96 kB / 452.6 MB, free: 228 kB / 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.001283/0.3397, allocations: 1.044 MB / 453.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002045/0.3417, allocations: 0.7348 MB / 454.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3417, allocations: 8.062 kB / 454.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.342, allocations: 95.86 kB / 454.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.3425, allocations: 75.91 kB / 454.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02172/0.3642, allocations: 5.203 MB / 459.8 MB, free: 8.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001846/0.3644, allocations: 165.2 kB / 459.9 MB, free: 8.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002492/0.3647, allocations: 38.95 kB / 459.9 MB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002069/0.3649, allocations: 115.4 kB / 460.1 MB, free: 8.523 MB / 366.1 MB Notification: Performance of SimCode: time 1.483e-06/0.3649, allocations: 0 / 460.1 MB, free: 8.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04947/0.4144, allocations: 13.64 MB / 473.7 MB, free: 11.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.16, allocations: 13.05 kB / 473.7 MB, free: 11.03 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv. Warning: Get data of variable Time from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv failed! Error: Could not read variable currentSensor1.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv. Warning: Get data of variable currentSensor1.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv failed! Error: Could not read variable currentSensor2.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv. Warning: Get data of variable currentSensor2.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv failed! Error: Could not read variable der1.y in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv. Warning: Get data of variable der1.y from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv failed! Error: Could not read variable der2.y in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv. Warning: Get data of variable der2.y from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.886857502162457]