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.0008145/0.0008145, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008788/0.0008788, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8799/0.8799, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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 1.533e-06/1.533e-06, allocations: 0 / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.039e-05/2.192e-05, allocations: 4.672 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002861/0.002883, allocations: 2.708 MB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.004077, allocations: 0.8688 MB / 328.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.00422, allocations: 7.938 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001498/0.00437, allocations: 47.5 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002671/0.004637, allocations: 135 kB / 328.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000284/0.004921, allocations: 231.5 kB / 328.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004238/0.005345, allocations: 0.5566 MB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.005546, allocations: 67.64 kB / 329.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003443/0.005891, allocations: 299.4 kB / 329.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002504/0.006141, allocations: 175.5 kB / 329.7 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.269e-05/0.006194, allocations: 44 kB / 329.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.07e-05/0.006235, allocations: 48 kB / 329.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.415e-05/0.006299, allocations: 103.6 kB / 329.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.593e-05/0.006395, allocations: 151.6 kB / 330 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003615/0.006756, allocations: 0.5102 MB / 330.5 MB, free: 9.957 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.006758, allocations: 4 kB / 330.5 MB, free: 9.953 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.006759, allocations: 0 / 330.5 MB, free: 9.953 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.006764, allocations: 0 / 330.5 MB, free: 9.953 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.001153/0.007917, allocations: 0.6796 MB / 331.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.007954, allocations: 8.031 kB / 331.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.267e-05/0.008006, allocations: 58.73 kB / 331.3 MB, free: 9.172 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.699e-05/0.008073, allocations: 40.7 kB / 331.3 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003613/0.008435, allocations: 272.6 kB / 331.6 MB, free: 8.844 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.00854, allocations: 135.9 kB / 331.7 MB, free: 8.688 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.122e-05/0.008581, allocations: 32.31 kB / 331.7 MB, free: 8.656 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003458/0.008927, allocations: 356.7 kB / 332.1 MB, free: 8.258 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.008942, allocations: 8.078 kB / 332.1 MB, free: 8.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.008964, allocations: 15.94 kB / 332.1 MB, free: 8.234 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.008971, allocations: 4 kB / 332.1 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002421/0.009213, allocations: 169.3 kB / 332.3 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.01075, allocations: 1.321 MB / 333.6 MB, free: 6.668 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.01089, allocations: 109.2 kB / 333.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.64e-05/0.01096, allocations: 45.83 kB / 333.7 MB, free: 6.492 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.01097, allocations: 4 kB / 333.7 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.011, allocations: 38.55 kB / 333.8 MB, free: 6.441 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.01101, allocations: 0 / 333.8 MB, free: 6.441 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001687/0.01269, allocations: 0.9296 MB / 334.7 MB, free: 5.449 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.01274, allocations: 110.8 kB / 334.8 MB, free: 5.316 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002486/0.01299, allocations: 328.5 kB / 335.1 MB, free: 4.984 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.01302, allocations: 29.7 kB / 335.2 MB, free: 4.949 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.01313, allocations: 212.4 kB / 335.4 MB, free: 4.734 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/0.01316, allocations: 43.64 kB / 335.4 MB, free: 4.691 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.259e-05/0.01325, allocations: 73.61 kB / 335.5 MB, free: 4.613 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.793e-05/0.01334, allocations: 346.7 kB / 335.8 MB, free: 4.266 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.01355, allocations: 155.9 kB / 336 MB, free: 4.113 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002442/0.01379, allocations: 261.4 kB / 336.2 MB, free: 3.812 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003873/0.01418, allocations: 361.4 kB / 336.6 MB, free: 3.426 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.01418, allocations: 0 / 336.6 MB, free: 3.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004061/0.01824, allocations: 1.314 MB / 337.9 MB, free: 2.098 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.01826, allocations: 8 kB / 337.9 MB, free: 2.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.01827, allocations: 0 / 337.9 MB, free: 2.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004497/0.02276, allocations: 1.157 MB / 339.1 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001976/0.02296, allocations: 63.88 kB / 339.1 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005987/0.02895, allocations: 5.027 MB / 344.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.02919, allocations: 31.97 kB / 344.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.02922, allocations: 23.97 kB / 344.2 MB, free: 11.55 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.0001555/0.02937, allocations: 149.7 kB / 344.4 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.792e-05/0.02942, allocations: 27.81 kB / 344.4 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.596e-05/0.02945, allocations: 26.67 kB / 344.4 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.02945, allocations: 192 / 344.4 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.02945, allocations: 8 kB / 344.4 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.02946, allocations: 0 / 344.4 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007284/0.03019, allocations: 0.6763 MB / 345.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.03019, allocations: 0 / 345.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.03035, allocations: 43.94 kB / 345.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.03035, allocations: 4 kB / 345.1 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.03037, allocations: 7.922 kB / 345.2 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.03037, allocations: 4 kB / 345.2 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.03037, allocations: 11.88 kB / 345.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005066/0.03088, allocations: 0.5102 MB / 345.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.219e-05/0.03091, allocations: 31.83 kB / 345.7 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.03093, allocations: 0 / 345.7 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.03111, allocations: 32.03 kB / 345.7 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/0.03115, allocations: 19.91 kB / 345.8 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.03116, allocations: 3.984 kB / 345.8 MB, free: 9.926 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001488/0.03131, allocations: 227.1 kB / 346 MB, free: 9.707 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03131, allocations: 0 / 346 MB, free: 9.707 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003272/0.03164, allocations: 96 kB / 346.1 MB, free: 9.613 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.0007059/0.03235, allocations: 1.051 MB / 347.1 MB, free: 8.535 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.03356, allocations: 0.7433 MB / 347.9 MB, free: 7.766 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.03356, allocations: 0 / 347.9 MB, free: 7.766 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002008/0.03376, allocations: 95.81 kB / 348 MB, free: 7.672 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.03415, allocations: 85.03 kB / 348.1 MB, free: 7.594 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01/0.04416, allocations: 5.212 MB / 353.3 MB, free: 2.227 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001071/0.04426, allocations: 173.1 kB / 353.4 MB, free: 2.035 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.04437, allocations: 30.97 kB / 353.5 MB, free: 2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.0445, allocations: 104.4 kB / 353.6 MB, free: 1.898 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.0445, allocations: 0 / 353.6 MB, free: 1.898 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02846/0.07295, allocations: 13.69 MB / 367.2 MB, free: 4.406 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.35/8.423, allocations: 11.08 kB / 367.3 MB, free: 4.398 MB / 330.7 MB " [Timeout remaining time 651] (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/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] "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] "" 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: 10.282824960537255]