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.0008116/0.0008116, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008172/0.0008172, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8697/0.8697, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 2.084e-06/2.084e-06, allocations: 4 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.595e-05/1.803e-05, allocations: 2.844 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002652/0.00267, allocations: 2.712 MB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.003853, allocations: 0.8495 MB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.004008, allocations: 11.94 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001731/0.004181, allocations: 55.44 kB / 328.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000316/0.004497, allocations: 123 kB / 328.3 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003492/0.004847, allocations: 239.5 kB / 328.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004646/0.005311, allocations: 0.5489 MB / 329.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.005469, allocations: 67.64 kB / 329.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002607/0.005729, allocations: 299.4 kB / 329.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.005918, allocations: 175.5 kB / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.731e-05/0.005976, allocations: 48 kB / 329.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.994e-05/0.006016, allocations: 48 kB / 329.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.609e-05/0.006072, allocations: 99.64 kB / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.534e-05/0.006167, allocations: 147.6 kB / 329.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.00655, allocations: 0.518 MB / 330.5 MB, free: 9.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.006555, allocations: 4 kB / 330.5 MB, free: 9.906 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.006556, allocations: 0 / 330.5 MB, free: 9.906 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.006565, allocations: 0 / 330.5 MB, free: 9.906 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.00102/0.007585, allocations: 0.6764 MB / 331.1 MB, free: 9.199 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.007622, allocations: 11.98 kB / 331.1 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.847e-05/0.007671, allocations: 62.67 kB / 331.2 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.679e-05/0.007737, allocations: 44.7 kB / 331.3 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003545/0.008092, allocations: 268.7 kB / 331.5 MB, free: 8.789 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.008193, allocations: 131.9 kB / 331.6 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.00823, allocations: 24.38 kB / 331.7 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003298/0.00856, allocations: 360.6 kB / 332 MB, free: 8.211 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.008575, allocations: 4.141 kB / 332 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.008596, allocations: 15.94 kB / 332 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.008604, allocations: 12 kB / 332.1 MB, free: 8.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002112/0.008815, allocations: 165.2 kB / 332.2 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.01036, allocations: 1.325 MB / 333.5 MB, free: 6.617 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.01051, allocations: 105.2 kB / 333.6 MB, free: 6.496 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.434e-05/0.01058, allocations: 49.77 kB / 333.7 MB, free: 6.441 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.01059, allocations: 11.98 kB / 333.7 MB, free: 6.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.01061, allocations: 30.56 kB / 333.7 MB, free: 6.391 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.01062, allocations: 0 / 333.7 MB, free: 6.391 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001711/0.01233, allocations: 0.9327 MB / 334.7 MB, free: 5.395 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.01237, allocations: 114.8 kB / 334.8 MB, free: 5.258 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.01261, allocations: 320.5 kB / 335.1 MB, free: 4.934 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.01264, allocations: 29.7 kB / 335.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.01274, allocations: 216.3 kB / 335.3 MB, free: 4.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.01278, allocations: 47.64 kB / 335.4 MB, free: 4.633 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.253e-05/0.01287, allocations: 73.61 kB / 335.4 MB, free: 4.555 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.341e-05/0.01295, allocations: 342.7 kB / 335.8 MB, free: 4.211 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/0.01317, allocations: 155.9 kB / 335.9 MB, free: 4.059 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.01342, allocations: 274.2 kB / 336.2 MB, free: 3.746 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003932/0.01381, allocations: 354 kB / 336.5 MB, free: 3.363 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.01382, allocations: 0 / 336.5 MB, free: 3.363 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004055/0.01787, allocations: 1.306 MB / 337.9 MB, free: 2.043 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.01789, allocations: 8 kB / 337.9 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.0179, allocations: 7.984 kB / 337.9 MB, free: 2.027 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004564/0.02246, allocations: 1.149 MB / 339 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.02267, allocations: 59.94 kB / 339.1 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006143/0.02881, allocations: 5.027 MB / 344.1 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.02909, allocations: 35.97 kB / 344.1 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.02911, allocations: 19.97 kB / 344.2 MB, free: 11.5 MB / 314.7 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.0001493/0.02926, allocations: 153.7 kB / 344.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.707e-05/0.02931, allocations: 27.81 kB / 344.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.882e-05/0.02934, allocations: 26.67 kB / 344.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.02934, allocations: 4 kB / 344.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.02934, allocations: 4 kB / 344.4 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.02934, allocations: 4.078 kB / 344.4 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007013/0.03005, allocations: 0.6724 MB / 345 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.03005, allocations: 0 / 345 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.03021, allocations: 51.88 kB / 345.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.03022, allocations: 4 kB / 345.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.03023, allocations: 7.984 kB / 345.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.03023, allocations: 0 / 345.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.03024, allocations: 3.938 kB / 345.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005103/0.03075, allocations: 0.5141 MB / 345.6 MB, free: 9.957 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.81e-05/0.03078, allocations: 31.83 kB / 345.7 MB, free: 9.926 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.03081, allocations: 64 / 345.7 MB, free: 9.926 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.03099, allocations: 40.03 kB / 345.7 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.936e-05/0.03104, allocations: 15.91 kB / 345.7 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.03105, allocations: 7.984 kB / 345.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001578/0.03121, allocations: 223.1 kB / 345.9 MB, free: 9.648 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03121, allocations: 0 / 345.9 MB, free: 9.648 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003724/0.03158, allocations: 100 kB / 346 MB, free: 9.551 MB / 314.7 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.000707/0.03229, allocations: 1.047 MB / 347.1 MB, free: 8.477 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.03341, allocations: 0.7423 MB / 347.8 MB, free: 7.711 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.03342, allocations: 0 / 347.8 MB, free: 7.711 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.03356, allocations: 95.81 kB / 347.9 MB, free: 7.617 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.03393, allocations: 73.28 kB / 348 MB, free: 7.543 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.04441, allocations: 5.21 MB / 353.2 MB, free: 2.168 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.04454, allocations: 169.1 kB / 353.4 MB, free: 1.984 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001772/0.04472, allocations: 38.94 kB / 353.4 MB, free: 1.941 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.04486, allocations: 104.4 kB / 353.5 MB, free: 1.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.233e-06/0.04486, allocations: 0 / 353.5 MB, free: 1.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.07294, allocations: 13.68 MB / 367.2 MB, free: 4.312 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/7.972, allocations: 11.78 kB / 367.2 MB, free: 4.301 MB / 330.7 MB " [Timeout remaining time 652] (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/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_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] "" Variables in the reference:time,currentSensor1.i,currentSensor2.i,integrator1.y,der1.y,integrator2.y,der2.y Variables in the result:time,integrator1.y,integrator2.y [Calling sys.exit(0), Time elapsed: 9.841779513284564]