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.001527/0.001527, allocations: 99.59 kB / 21.2 MB, free: 0.6406 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.001811/0.001811, allocations: 215.5 kB / 24.5 MB, free: 3.93 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.452/1.452, allocations: 230.6 MB / 258.3 MB, free: 7.77 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: translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.276e-05/2.276e-05, allocations: 2.281 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.1777/0.1777, allocations: 2.693 MB / 381.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.1791, allocations: 0.8622 MB / 382.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.1792, allocations: 9.5 kB / 382.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001496/0.1794, allocations: 53.53 kB / 382.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002683/0.1796, allocations: 118.8 kB / 382.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002952/0.1799, allocations: 229.5 kB / 382.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005637/0.1805, allocations: 0.7388 MB / 383.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.1807, allocations: 72.91 kB / 383.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000241/0.1809, allocations: 269 kB / 384 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.1811, allocations: 228.5 kB / 384.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.995e-05/0.1812, allocations: 46.12 kB / 384.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.46e-05/0.1813, allocations: 48.25 kB / 384.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.000447/0.1817, allocations: 0.7655 MB / 385.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001644/0.1819, allocations: 445.5 kB / 385.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.848e-05/0.182, allocations: 34.78 kB / 385.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.234e-05/0.182, allocations: 20.25 kB / 385.6 MB, free: 11.93 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 (58) * Number of variables: 58 (58) Notification: Performance of [SIM] Bindings: time 0.0166/0.1986, allocations: 1.786 MB / 387.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.0003213/0.1989, allocations: 295.1 kB / 387.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of [SIM] Early Inline: time 0.0007422/0.1997, allocations: 0.9094 MB / 388.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of [SIM] Simplify 1: time 0.0004836/0.2001, allocations: 405.6 kB / 388.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of [SIM] Alias: time 0.001713/0.2019, allocations: 1.385 MB / 390.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0003008/0.2022, allocations: 304.8 kB / 390.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of [SIM] Remove Stream: time 9.711e-05/0.2023, allocations: 118.4 kB / 390.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of [SIM] Detect States: time 0.0002605/0.2025, allocations: 280 kB / 391 MB, free: 8.605 MB / 302.1 MB Notification: Performance of [SIM] Events: time 0.0001107/0.2026, allocations: 62.92 kB / 391.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of [SIM] Partitioning: time 0.0002419/0.2029, allocations: 271.9 kB / 391.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of [SIM] Causalize: time 0.001541/0.2044, allocations: 1.512 MB / 392.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.000747/0.2052, allocations: 0.8864 MB / 393.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of [INI] Simplify: time 0.001084/0.2062, allocations: 0.9726 MB / 394.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of [INI] Inline: time 0.001073/0.2073, allocations: 1.271 MB / 396 MB, free: 5.887 MB / 302.1 MB Notification: Performance of [INI] Partitioning: time 4.953e-05/0.2074, allocations: 32.61 kB / 396 MB, free: 5.863 MB / 302.1 MB Notification: Performance of [INI] Cleanup: time 0.0001464/0.2075, allocations: 230.2 kB / 396.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of [INI] Causalize: time 0.002149/0.2097, allocations: 1.656 MB / 397.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of [INI] Tearing: time 0.0003205/0.21, allocations: 307.9 kB / 398.2 MB, free: 5.227 MB / 302.1 MB Notification: Performance of [SIM] Initialization: time 7.41e-07/0.21, allocations: 1.156 kB / 398.2 MB, free: 5.227 MB / 302.1 MB Notification: Performance of [SIM] Remove Dummies: time 8.375e-06/0.21, allocations: 5.062 kB / 398.2 MB, free: 5.223 MB / 302.1 MB Notification: Performance of [SIM] Tearing: time 9.257e-06/0.21, allocations: 17.47 kB / 398.2 MB, free: 5.211 MB / 302.1 MB Notification: Performance of [SIM] Categorize: time 1.51e-05/0.21, allocations: 6.312 kB / 398.2 MB, free: 5.207 MB / 302.1 MB Notification: Performance of [SIM] Solve: time 0.00124/0.2113, allocations: 1.149 MB / 399.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of [SIM] Jacobian: time 0.0002773/0.2115, allocations: 491.5 kB / 399.8 MB, free: 4.219 MB / 302.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 2 * Number of ODE event partitions: ............... 2 * Number of algebraic event partitions: ......... 3 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 2 (2) {integrator1.y, integrator2.y} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {} * Number of discrete variables: ................. 5 (5) {$SEV_2, $SEV_1, $SEV_0, $TEV_1, $TEV_0} * Number of clocks: ............................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 30 (scalar:30, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 54 (scalar:54, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 2, nonlinear:0) Notification: Performance of backend: time 4.355e-05/0.2116, allocations: 51.23 kB / 399.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of SimCode: time 0.001296/0.2129, allocations: 1.433 MB / 401.3 MB, free: 3.059 MB / 302.1 MB Notification: Performance of Templates: time 0.01408/0.2269, allocations: 5.433 MB / 406.8 MB, free: 368 kB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemonstrateLightning/DemonstrateLightning.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] "" Variables in the reference:time,currentSensor1.i,currentSensor2.i,integrator1.y,der1.y,integrator2.y,der2.y Variables in the result:T1,T2,currentSensor1.i,currentSensor2.i,der1.y,der2.y,ground1.p.v,ground2.p.v,integrator1.initType,integrator1.k,integrator1.u,integrator1.y,integrator1.y_start,integrator2.initType,integrator2.k,integrator2.u,integrator2.y,integrator2.y_start,lightning1.T1,lightning1.T2,lightning1.V,lightning1.approximation,lightning1.m,lightning1.n.v,lightning1.offset,lightning1.signalSource.T,lightning1.signalSource.T0,lightning1.signalSource.T1,lightning1.signalSource.T10,lightning1.signalSource.T2,lightning1.signalSource.amplitude,lightning1.signalSource.approximation,lightning1.signalSource.eta,lightning1.signalSource.m,lightning1.signalSource.offset,lightning1.signalSource.startTime,lightning1.signalSource.tau1,lightning1.signalSource.tau2,lightning1.startTime,lightning2.I,lightning2.T1,lightning2.T2,lightning2.approximation,lightning2.m,lightning2.offset,lightning2.p.v,lightning2.signalSource.T,lightning2.signalSource.T0,lightning2.signalSource.T1,lightning2.signalSource.T10,lightning2.signalSource.T2,lightning2.signalSource.amplitude,lightning2.signalSource.approximation,lightning2.signalSource.eta,lightning2.signalSource.m,lightning2.signalSource.offset,lightning2.signalSource.startTime,lightning2.signalSource.tau1,lightning2.signalSource.tau2,lightning2.startTime,resistor1.R,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor1.n.v,resistor2.R,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.alpha,resistor2.n.v,time [Calling sys.exit(0), Time elapsed: 5.246258758939803]