Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.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.00134/0.00134, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 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.001502/0.001502, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 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 1.452/1.452, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 67.89 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2838, allocations: 53.41 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006982/0.2908, allocations: 5.233 MB / 436.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009985/0.3008, allocations: 6.72 MB / 443.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009513/0.3017, allocations: 63.38 kB / 443.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.3033, allocations: 0.4978 MB / 443.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002859/0.3062, allocations: 0.8302 MB / 444.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001356/0.3075, allocations: 442.4 kB / 445 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003373/0.3109, allocations: 2.048 MB / 447 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002613/0.3112, allocations: 103.2 kB / 447.1 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006186/0.3118, allocations: 394.1 kB / 447.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000456/0.3122, allocations: 345.7 kB / 447.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.578e-05/0.3123, allocations: 32 kB / 447.9 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001142/0.3134, allocations: 499.6 kB / 448.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.3136, allocations: 119.2 kB / 448.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004232/0.314, allocations: 445 kB / 448.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001743/0.3157, allocations: 1.291 MB / 450.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3157, allocations: 0 / 450.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3157, allocations: 0 / 450.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.3158, allocations: 0 / 450.2 MB, free: 3.598 MB / 350.1 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.002111/0.3179, allocations: 1.411 MB / 451.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3179, allocations: 12.03 kB / 451.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.425e-05/0.318, allocations: 62.48 kB / 451.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003231/0.3183, allocations: 151 kB / 451.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.3195, allocations: 0.76 MB / 452.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.3195, allocations: 24.38 kB / 452.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.252e-05/0.3196, allocations: 27.95 kB / 452.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005538/0.3201, allocations: 311.2 kB / 452.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.3202, allocations: 0 / 452.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.3202, allocations: 12 kB / 452.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3202, allocations: 7.938 kB / 453 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004136/0.3206, allocations: 225.8 kB / 453.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.3224, allocations: 1.061 MB / 454.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004125/0.3228, allocations: 218 kB / 454.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004899/0.3233, allocations: 265.7 kB / 454.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007636/0.3241, allocations: 169.4 kB / 454.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.3241, allocations: 34.56 kB / 454.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=38): time 1.814e-06/0.3241, allocations: 0 / 454.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.002979/0.3271, allocations: 1.427 MB / 456.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.76e-05/0.3272, allocations: 114.8 kB / 456.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.3283, allocations: 0.934 MB / 457.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.3284, allocations: 33.7 kB / 457.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003467/0.3287, allocations: 353.8 kB / 457.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.3288, allocations: 138.8 kB / 457.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001905/0.329, allocations: 121.7 kB / 458 MB, free: 11.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.3292, allocations: 329.9 kB / 458.3 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002551/0.3295, allocations: 120.6 kB / 458.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.3297, allocations: 163.8 kB / 458.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.3312, allocations: 0.7373 MB / 459.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3312, allocations: 0 / 459.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009959/0.3322, allocations: 0.5664 MB / 459.9 MB, free: 9.523 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.443e-05/0.3323, allocations: 37.69 kB / 459.9 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.85e-05/0.3323, allocations: 23.92 kB / 460 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002314/0.3325, allocations: 73.61 kB / 460 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002301/0.3328, allocations: 39.97 kB / 460.1 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003055/0.3358, allocations: 3.129 MB / 463.2 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.3362, allocations: 20.02 kB / 463.2 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.655e-05/0.3362, allocations: 20 kB / 463.3 MB, free: 5.949 MB / 366.1 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.0004662/0.3367, allocations: 255.9 kB / 463.5 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/0.3368, allocations: 131.1 kB / 463.6 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001311/0.3381, allocations: 0.6568 MB / 464.3 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.3381, allocations: 4 kB / 464.3 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3381, allocations: 4 kB / 464.3 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3382, allocations: 7.984 kB / 464.3 MB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007737/0.3389, allocations: 0.58 MB / 464.9 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-05/0.339, allocations: 19.94 kB / 464.9 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001816/0.3391, allocations: 35.97 kB / 464.9 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.3393, allocations: 65.67 kB / 465 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.339e-05/0.3394, allocations: 16 kB / 465 MB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002753/0.3421, allocations: 3.132 MB / 468.1 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.3421, allocations: 4 kB / 468.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.3435, allocations: 0.8672 MB / 469 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004005/0.3439, allocations: 193 kB / 469.2 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.617e-05/0.344, allocations: 11.98 kB / 469.2 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002678/0.3443, allocations: 15.88 kB / 469.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.25e-05/0.3444, allocations: 31.95 kB / 469.3 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.33e-05/0.3444, allocations: 23.98 kB / 469.3 MB, free: 15.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007992/0.3452, allocations: 0.6217 MB / 469.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3452, allocations: 4 kB / 469.9 MB, free: 14.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008518/0.3461, allocations: 219.6 kB / 470.1 MB, free: 14.73 MB / 382.1 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.00223/0.3483, allocations: 1.62 MB / 471.8 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.3496, allocations: 0.7463 MB / 472.5 MB, free: 12.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3496, allocations: 3.938 kB / 472.5 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007283/0.3503, allocations: 0.5931 MB / 473.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000643/0.3509, allocations: 116.7 kB / 473.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007973/0.3589, allocations: 5.756 MB / 479 MB, free: 5.566 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000629/0.3595, allocations: 0.9961 MB / 480 MB, free: 4.543 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002751/0.3598, allocations: 97.62 kB / 480.1 MB, free: 4.445 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003336/0.3602, allocations: 283.3 kB / 480.3 MB, free: 4.172 MB / 382.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3602, allocations: 0 / 480.3 MB, free: 4.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05917/0.4193, allocations: 17.65 MB / 498 MB, free: 2.641 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.82, allocations: 7.875 kB / 498 MB, free: 2.633 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.csv. Warning: Get data of variable D3.n.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.43337341199731]