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.001294/0.001294, 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.001444/0.001444, allocations: 210.4 kB / 23.73 MB, free: 4.523 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.438/1.438, 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.00146/0.00146, allocations: 51.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2721, allocations: 53.36 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.006535/0.2786, allocations: 2.696 MB / 433.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00246/0.2811, allocations: 0.8651 MB / 434.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002104/0.2813, allocations: 11.94 kB / 434.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002437/0.2815, allocations: 51.44 kB / 434.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005004/0.282, allocations: 123.1 kB / 434.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000615/0.2827, allocations: 223.7 kB / 435.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008967/0.2836, allocations: 0.5374 MB / 435.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.2838, allocations: 83.52 kB / 435.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003428/0.2842, allocations: 203.4 kB / 435.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004788/0.2847, allocations: 223.1 kB / 436.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.2848, allocations: 48 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.2849, allocations: 48 kB / 436.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.285, allocations: 99.66 kB / 436.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002687/0.2853, allocations: 167.3 kB / 436.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000812/0.2861, allocations: 0.5038 MB / 437 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2861, allocations: 0 / 437 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2861, allocations: 0 / 437 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.2861, allocations: 4 kB / 437 MB, free: 0.7852 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.002534/0.2887, allocations: 0.6765 MB / 437.6 MB, free: 80 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.2887, allocations: 12.02 kB / 437.6 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.28e-05/0.2888, allocations: 54.73 kB / 437.7 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.289, allocations: 44.08 kB / 437.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007796/0.2897, allocations: 273.4 kB / 438 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.29, allocations: 131.9 kB / 438.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.805e-05/0.2901, allocations: 32.94 kB / 438.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008285/0.2909, allocations: 360 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.2909, allocations: 3.938 kB / 438.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.12e-05/0.2909, allocations: 12 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.291, allocations: 4 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006311/0.2916, allocations: 173.2 kB / 438.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004573/0.2962, allocations: 1.329 MB / 440 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.2965, allocations: 105.2 kB / 440.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002067/0.2967, allocations: 49.81 kB / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.2967, allocations: 4 kB / 440.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/0.2968, allocations: 38.56 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.144e-06/0.2968, allocations: 0 / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.005014/0.3018, allocations: 0.9172 MB / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.3019, allocations: 106.8 kB / 441.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006246/0.3025, allocations: 332.4 kB / 441.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.776e-05/0.3026, allocations: 25.7 kB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002637/0.3029, allocations: 228.3 kB / 441.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.892e-05/0.3029, allocations: 43.58 kB / 441.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002359/0.3032, allocations: 81.55 kB / 441.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3033, allocations: 338.8 kB / 442.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003934/0.3037, allocations: 155.9 kB / 442.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004267/0.3042, allocations: 272.6 kB / 442.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006634/0.3048, allocations: 362 kB / 443.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3048, allocations: 0 / 443.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.008603/0.3134, allocations: 1.302 MB / 444.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.428e-05/0.3135, allocations: 11.98 kB / 444.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3135, allocations: 3.938 kB / 444.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01001/0.3235, allocations: 1.153 MB / 445.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004406/0.3239, allocations: 67.88 kB / 445.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01089/0.3348, allocations: 5.027 MB / 450.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00054/0.3353, allocations: 35.97 kB / 450.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.3354, allocations: 19.98 kB / 450.7 MB, free: 2.379 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.0002164/0.3356, allocations: 157.6 kB / 450.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-05/0.3357, allocations: 23.86 kB / 450.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.595e-05/0.3357, allocations: 30.61 kB / 450.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3357, allocations: 0 / 450.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.3357, allocations: 0 / 450.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3357, allocations: 4 kB / 450.9 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.3369, allocations: 0.6763 MB / 451.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3369, allocations: 3.984 kB / 451.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003316/0.3372, allocations: 39.95 kB / 451.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3372, allocations: 4 kB / 451.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.3372, allocations: 7.984 kB / 451.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.3372, allocations: 3.938 kB / 451.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3372, allocations: 8 kB / 451.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008463/0.3381, allocations: 0.5181 MB / 452.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.425e-05/0.3381, allocations: 27.88 kB / 452.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.469e-05/0.3382, allocations: 8.062 kB / 452.2 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003656/0.3386, allocations: 27.98 kB / 452.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.3386, allocations: 19.97 kB / 452.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.3386, allocations: 3.984 kB / 452.2 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002476/0.3389, allocations: 227.1 kB / 452.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3389, allocations: 0 / 452.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004972/0.3394, allocations: 96 kB / 452.5 MB, free: 440 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.001198/0.3406, allocations: 1.058 MB / 453.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001929/0.3425, allocations: 0.7433 MB / 454.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3425, allocations: 0 / 454.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002476/0.3428, allocations: 91.88 kB / 454.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005489/0.3433, allocations: 71.72 kB / 454.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02046/0.3638, allocations: 5.207 MB / 459.7 MB, free: 9.051 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.364, allocations: 177.1 kB / 459.9 MB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001958/0.3641, allocations: 34.95 kB / 459.9 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.3643, allocations: 111.4 kB / 460 MB, free: 8.719 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3643, allocations: 0 / 460 MB, free: 8.719 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04571/0.4101, allocations: 13.71 MB / 473.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13, allocations: 14.2 kB / 473.8 MB, free: 11.2 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: 15.657098083989695]