Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009272/0.0009272, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009075/0.0009075, allocations: 149.1 kB / 23.93 MB, free: 0.625 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9116/0.9116, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.945e-05/2.091e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.003863/0.003884, allocations: 4.548 MB / 323 MB, free: 1.785 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005511/0.009395, allocations: 5.826 MB / 328.8 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000361/0.009756, allocations: 63.38 kB / 328.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000854/0.01061, allocations: 480.5 kB / 329.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001289/0.0119, allocations: 0.8493 MB / 330.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009573/0.01286, allocations: 442.3 kB / 330.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001686/0.01454, allocations: 2.051 MB / 332.7 MB, free: 8.055 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.01474, allocations: 99.25 kB / 332.8 MB, free: 7.941 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004092/0.01515, allocations: 0.5064 MB / 333.3 MB, free: 7.434 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.01538, allocations: 239.1 kB / 333.5 MB, free: 7.199 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.986e-05/0.01542, allocations: 28 kB / 333.5 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006441/0.01606, allocations: 455.4 kB / 334 MB, free: 6.727 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.618e-05/0.01613, allocations: 111.2 kB / 334.1 MB, free: 6.617 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.01629, allocations: 235.2 kB / 334.3 MB, free: 6.387 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009356/0.01722, allocations: 1.289 MB / 335.6 MB, free: 5.094 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.01723, allocations: 0 / 335.6 MB, free: 5.094 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.01723, allocations: 0 / 335.6 MB, free: 5.094 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.01724, allocations: 7.938 kB / 335.6 MB, free: 5.086 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001198/0.01843, allocations: 1.399 MB / 337 MB, free: 3.645 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.01847, allocations: 8.922 kB / 337 MB, free: 3.637 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.554e-05/0.01853, allocations: 66.53 kB / 337.1 MB, free: 3.562 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.01863, allocations: 139 kB / 337.2 MB, free: 3.426 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.01966, allocations: 0.7678 MB / 338 MB, free: 2.617 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.01967, allocations: 20.44 kB / 338 MB, free: 2.598 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.01971, allocations: 24 kB / 338 MB, free: 2.574 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004006/0.02011, allocations: 379.1 kB / 338.4 MB, free: 2.176 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.02012, allocations: 0 / 338.4 MB, free: 2.176 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.02014, allocations: 4 kB / 338.4 MB, free: 2.172 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.02015, allocations: 8 kB / 338.4 MB, free: 2.164 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002711/0.02042, allocations: 259.8 kB / 338.7 MB, free: 1.906 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.02155, allocations: 1.007 MB / 339.7 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.02185, allocations: 252.2 kB / 339.9 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/0.02217, allocations: 290.4 kB / 340.2 MB, free: 312 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000448/0.02262, allocations: 165.5 kB / 340.4 MB, free: 148 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.02264, allocations: 34.56 kB / 340.4 MB, free: 104 kB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 2.044e-06/0.02264, allocations: 4 kB / 340.4 MB, free: 100 kB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.001883/0.02452, allocations: 1.495 MB / 341.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.02458, allocations: 118.8 kB / 342 MB, free: 14.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006847/0.02526, allocations: 0.9339 MB / 342.9 MB, free: 13.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.02529, allocations: 29.7 kB / 343 MB, free: 13.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.02549, allocations: 357.7 kB / 343.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.206e-05/0.02556, allocations: 134.8 kB / 343.5 MB, free: 12.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.02567, allocations: 125.7 kB / 343.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.451e-05/0.02575, allocations: 318 kB / 343.9 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.02591, allocations: 154.3 kB / 344 MB, free: 12.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.0261, allocations: 227.8 kB / 344.3 MB, free: 12.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.02721, allocations: 0.7411 MB / 345 MB, free: 11.3 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.02722, allocations: 8 kB / 345 MB, free: 11.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006086/0.02782, allocations: 0.5954 MB / 345.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.079e-05/0.02787, allocations: 37.69 kB / 345.6 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.448e-05/0.02789, allocations: 19.94 kB / 345.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001662/0.02806, allocations: 77.59 kB / 345.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.02819, allocations: 44.02 kB / 345.8 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.03006, allocations: 3.102 MB / 348.9 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.03027, allocations: 16.08 kB / 348.9 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.106e-05/0.03031, allocations: 20 kB / 348.9 MB, free: 7.129 MB / 314.7 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003498/0.03066, allocations: 263.2 kB / 349.2 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.7e-05/0.03075, allocations: 127.2 kB / 349.3 MB, free: 6.734 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008262/0.03157, allocations: 0.7092 MB / 350 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.03158, allocations: 4 kB / 350 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.03158, allocations: 4 kB / 350 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.03159, allocations: 0 / 350 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004683/0.03206, allocations: 0.541 MB / 350.6 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/0.03207, allocations: 16 kB / 350.6 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.359e-05/0.03217, allocations: 35.97 kB / 350.6 MB, free: 5.355 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001298/0.0323, allocations: 69.67 kB / 350.7 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.03233, allocations: 23.92 kB / 350.7 MB, free: 5.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00175/0.03408, allocations: 3.113 MB / 353.8 MB, free: 1.918 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.03408, allocations: 3.938 kB / 353.8 MB, free: 1.914 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008352/0.03491, allocations: 0.9368 MB / 354.7 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002354/0.03515, allocations: 205 kB / 354.9 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.896e-05/0.0352, allocations: 12.12 kB / 355 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.03534, allocations: 12 kB / 355 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.846e-05/0.03541, allocations: 27.95 kB / 355 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.873e-05/0.03544, allocations: 23.98 kB / 355 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004958/0.03593, allocations: 0.6256 MB / 355.6 MB, free: 32 kB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03593, allocations: 0 / 355.6 MB, free: 32 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005699/0.0365, allocations: 227.6 kB / 355.9 MB, free: 15.81 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * 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 (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001359/0.03786, allocations: 1.698 MB / 357.6 MB, free: 14.06 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007676/0.03863, allocations: 0.8191 MB / 358.4 MB, free: 13.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.03863, allocations: 0 / 358.4 MB, free: 13.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005991/0.03923, allocations: 0.6298 MB / 359 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.03967, allocations: 115.6 kB / 359.1 MB, free: 12.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005139/0.04481, allocations: 5.935 MB / 365.1 MB, free: 6.223 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.04506, allocations: 421 kB / 365.5 MB, free: 5.781 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001924/0.04525, allocations: 89.64 kB / 365.6 MB, free: 5.691 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/0.04547, allocations: 280.4 kB / 365.8 MB, free: 5.418 MB / 330.7 MB Notification: Performance of SimCode: time 8.62e-07/0.04547, allocations: 8 kB / 365.8 MB, free: 5.41 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03556/0.08103, allocations: 18.59 MB / 384.4 MB, free: 3.027 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.51/7.591, allocations: 9.156 kB / 384.4 MB, free: 3.023 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4.998e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable D3.n.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.csv. Warning: Get data of variable D3.n.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.450005907565355]