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.001305/0.001305, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001391/0.001391, allocations: 187.4 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.436/1.436, allocations: 225.6 MB / 252.5 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001594/0.001594, allocations: 47.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2585, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006503/0.265, allocations: 5.24 MB / 427.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009562/0.2746, allocations: 6.662 MB / 434.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009844/0.2756, allocations: 71.31 kB / 434.6 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001576/0.2771, allocations: 0.4978 MB / 435.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003189/0.2803, allocations: 0.8148 MB / 435.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001493/0.2818, allocations: 442.4 kB / 436.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003384/0.2852, allocations: 2.009 MB / 438.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002927/0.2855, allocations: 99.27 kB / 438.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006583/0.2862, allocations: 378.2 kB / 438.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004855/0.2867, allocations: 353.6 kB / 439.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.813e-05/0.2867, allocations: 32 kB / 439.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.2879, allocations: 491.5 kB / 439.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.288, allocations: 111.2 kB / 439.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000403/0.2885, allocations: 449.1 kB / 440.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00176/0.2902, allocations: 1.272 MB / 441.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2902, allocations: 4 kB / 441.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2902, allocations: 3.938 kB / 441.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.726e-05/0.2902, allocations: 0 / 441.5 MB, free: 11.64 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.002123/0.2924, allocations: 1.403 MB / 442.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.2924, allocations: 12.03 kB / 442.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.974e-05/0.2925, allocations: 62.53 kB / 443 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.2926, allocations: 135.1 kB / 443.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.2938, allocations: 0.7716 MB / 443.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/0.2939, allocations: 16.44 kB / 443.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/0.2939, allocations: 28 kB / 443.9 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005445/0.2945, allocations: 311.3 kB / 444.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.2945, allocations: 11.88 kB / 444.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.2945, allocations: 12 kB / 444.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.2945, allocations: 7.938 kB / 444.2 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004045/0.2949, allocations: 221.9 kB / 444.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.2967, allocations: 1.065 MB / 445.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004225/0.2971, allocations: 218.3 kB / 445.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004816/0.2976, allocations: 269 kB / 446 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007912/0.2984, allocations: 161.4 kB / 446.2 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.2985, allocations: 34.56 kB / 446.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.923e-06/0.2985, allocations: 0 / 446.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.003144/0.3016, allocations: 1.429 MB / 447.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.66e-05/0.3017, allocations: 114.8 kB / 447.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/0.3028, allocations: 0.9301 MB / 448.7 MB, free: 4.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/0.3028, allocations: 33.69 kB / 448.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003019/0.3031, allocations: 357.7 kB / 449 MB, free: 3.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.3033, allocations: 142.7 kB / 449.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.3034, allocations: 121.7 kB / 449.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.3036, allocations: 325.9 kB / 449.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/0.3038, allocations: 120.6 kB / 449.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.3041, allocations: 164.4 kB / 449.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.3055, allocations: 0.7336 MB / 450.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3055, allocations: 0 / 450.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000958/0.3064, allocations: 0.5625 MB / 451.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.567e-05/0.3065, allocations: 33.7 kB / 451.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.293e-05/0.3065, allocations: 19.98 kB / 451.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002252/0.3067, allocations: 65.69 kB / 451.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.307, allocations: 47.91 kB / 451.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00271/0.3097, allocations: 3.122 MB / 454.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.31, allocations: 20.05 kB / 454.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.755e-05/0.31, allocations: 20 kB / 454.5 MB, free: 14.02 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.0004341/0.3105, allocations: 261.5 kB / 454.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.3106, allocations: 135.1 kB / 454.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.3119, allocations: 0.6687 MB / 455.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.3119, allocations: 4 kB / 455.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.3119, allocations: 0 / 455.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.3119, allocations: 0 / 455.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007581/0.3127, allocations: 0.5877 MB / 456.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.892e-05/0.3127, allocations: 23.92 kB / 456.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001884/0.3129, allocations: 27.98 kB / 456.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001962/0.3131, allocations: 69.67 kB / 456.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.594e-05/0.3131, allocations: 15.98 kB / 456.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002642/0.3158, allocations: 3.125 MB / 459.4 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3158, allocations: 4.062 kB / 459.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.3172, allocations: 0.867 MB / 460.3 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004178/0.3176, allocations: 201.1 kB / 460.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.419e-05/0.3177, allocations: 12 kB / 460.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002691/0.3179, allocations: 15.94 kB / 460.5 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.318, allocations: 35.95 kB / 460.6 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.18e-05/0.3181, allocations: 15.98 kB / 460.6 MB, free: 7.629 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008181/0.3189, allocations: 0.6295 MB / 461.2 MB, free: 6.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3189, allocations: 0 / 461.2 MB, free: 6.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008269/0.3197, allocations: 227.6 kB / 461.4 MB, free: 6.773 MB / 366.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.002112/0.3218, allocations: 1.597 MB / 463 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.323, allocations: 0.7492 MB / 463.8 MB, free: 4.324 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.323, allocations: 4.062 kB / 463.8 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000714/0.3237, allocations: 0.593 MB / 464.4 MB, free: 3.664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006494/0.3244, allocations: 116.8 kB / 464.5 MB, free: 3.547 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007887/0.3323, allocations: 5.762 MB / 470.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006315/0.3329, allocations: 1.008 MB / 471.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002768/0.3332, allocations: 97.58 kB / 471.3 MB, free: 12.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.3335, allocations: 283.3 kB / 471.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of SimCode: time 1.273e-06/0.3335, allocations: 0 / 471.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05823/0.3917, allocations: 17.62 MB / 489.2 MB, free: 10.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.35, allocations: 4.062 kB / 489.3 MB, free: 10.78 MB / 398.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins1/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: 15.967978571999993]