Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.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.001758/0.001758, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002136/0.002136, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.992 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.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 47.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2505, allocations: 53.37 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.00638/0.2569, allocations: 5.247 MB / 436.4 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008821/0.2657, allocations: 6.714 MB / 443.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006268/0.2663, allocations: 67.31 kB / 443.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.2676, allocations: 0.4963 MB / 443.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002038/0.2696, allocations: 0.8303 MB / 444.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.2707, allocations: 449.2 kB / 444.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003093/0.2738, allocations: 2.048 MB / 447 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002485/0.274, allocations: 99.27 kB / 447.1 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005802/0.2746, allocations: 390.2 kB / 447.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004542/0.2751, allocations: 341.7 kB / 447.8 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.402e-05/0.2751, allocations: 35.94 kB / 447.8 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.2762, allocations: 0.4956 MB / 448.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.2763, allocations: 107.3 kB / 448.4 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004022/0.2767, allocations: 453 kB / 448.9 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00157/0.2783, allocations: 1.291 MB / 450.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2783, allocations: 0 / 450.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2783, allocations: 0 / 450.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.2783, allocations: 4 kB / 450.1 MB, free: 3.75 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.002051/0.2804, allocations: 1.411 MB / 451.6 MB, free: 2.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.2804, allocations: 12.03 kB / 451.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.098e-05/0.2805, allocations: 66.47 kB / 451.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003162/0.2808, allocations: 147.1 kB / 451.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.282, allocations: 0.76 MB / 452.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.282, allocations: 24.44 kB / 452.6 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.2821, allocations: 19.95 kB / 452.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005475/0.2826, allocations: 307.3 kB / 452.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2826, allocations: 0 / 452.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.2826, allocations: 11.94 kB / 452.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.2827, allocations: 15.92 kB / 452.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004125/0.2831, allocations: 225.9 kB / 453.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.2849, allocations: 1.065 MB / 454.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004042/0.2853, allocations: 219.2 kB / 454.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004885/0.2858, allocations: 269.5 kB / 454.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007344/0.2865, allocations: 165.4 kB / 454.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.2866, allocations: 38.56 kB / 454.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=38): time 1.603e-06/0.2866, allocations: 0 / 454.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.002925/0.2895, allocations: 1.419 MB / 456.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.545e-05/0.2896, allocations: 114.8 kB / 456.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.2907, allocations: 0.9301 MB / 457.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.647e-05/0.2907, allocations: 29.7 kB / 457.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003402/0.2911, allocations: 361.8 kB / 457.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.2912, allocations: 138.8 kB / 457.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.2913, allocations: 121.7 kB / 458 MB, free: 11.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.2915, allocations: 321.9 kB / 458.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002696/0.2918, allocations: 124.6 kB / 458.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002878/0.2921, allocations: 167.6 kB / 458.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.2935, allocations: 0.7414 MB / 459.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2935, allocations: 3.938 kB / 459.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009989/0.2945, allocations: 0.5663 MB / 459.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.682e-05/0.2945, allocations: 37.7 kB / 459.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.534e-05/0.2946, allocations: 15.98 kB / 459.9 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/0.2948, allocations: 65.69 kB / 460 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.295, allocations: 43.97 kB / 460 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002806/0.2978, allocations: 3.132 MB / 463.2 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.2981, allocations: 16.02 kB / 463.2 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.416e-05/0.2982, allocations: 16 kB / 463.2 MB, free: 6.109 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.0004338/0.2986, allocations: 252 kB / 463.5 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.2988, allocations: 139.1 kB / 463.6 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001393/0.3002, allocations: 0.6646 MB / 464.3 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3002, allocations: 4 kB / 464.3 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3002, allocations: 4 kB / 464.3 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3002, allocations: 4.062 kB / 464.3 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008055/0.301, allocations: 0.5917 MB / 464.9 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.123e-05/0.301, allocations: 19.92 kB / 464.9 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.3012, allocations: 31.98 kB / 464.9 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002135/0.3014, allocations: 77.59 kB / 465 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.3015, allocations: 15.98 kB / 465 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002785/0.3043, allocations: 3.113 MB / 468.1 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3043, allocations: 0 / 468.1 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/0.3056, allocations: 0.8633 MB / 469 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004397/0.3061, allocations: 201.1 kB / 469.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.478e-05/0.3062, allocations: 8 kB / 469.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002693/0.3064, allocations: 15.94 kB / 469.2 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.331e-05/0.3065, allocations: 31.89 kB / 469.2 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.826e-05/0.3066, allocations: 27.97 kB / 469.3 MB, free: 15.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008231/0.3074, allocations: 0.6256 MB / 469.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3074, allocations: 0 / 469.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008167/0.3082, allocations: 227.6 kB / 470.1 MB, free: 14.87 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.002407/0.3106, allocations: 1.609 MB / 471.7 MB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.3119, allocations: 0.7463 MB / 472.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3119, allocations: 0 / 472.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007658/0.3127, allocations: 0.597 MB / 473.1 MB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006742/0.3134, allocations: 116.7 kB / 473.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008278/0.3216, allocations: 5.757 MB / 478.9 MB, free: 5.719 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006824/0.3223, allocations: 1.004 MB / 479.9 MB, free: 4.688 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002795/0.3226, allocations: 93.64 kB / 480 MB, free: 4.594 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003333/0.3229, allocations: 283.3 kB / 480.3 MB, free: 4.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3229, allocations: 0 / 480.3 MB, free: 4.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06091/0.3838, allocations: 17.67 MB / 498 MB, free: 2.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/13.67, allocations: 0 / 498 MB, free: 2.84 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.Graetz_res.csv. Warning: Get data of variable D3.n.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.264799939999648]