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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 112.2 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001445, allocations: 196 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2895, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005715/0.2952, allocations: 5.193 MB / 405.4 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008166/0.3034, allocations: 6.619 MB / 412 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007677/0.3042, allocations: 43.69 kB / 412.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.3056, allocations: 0.5037 MB / 412.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002105/0.3077, allocations: 0.8186 MB / 413.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.309, allocations: 438.4 kB / 413.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003061/0.312, allocations: 1.997 MB / 415.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003034/0.3124, allocations: 171 kB / 416 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005036/0.3129, allocations: 378.2 kB / 416.4 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003625/0.3133, allocations: 345.7 kB / 416.7 MB, free: 8.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.3133, allocations: 28 kB / 416.7 MB, free: 8.223 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009947/0.3143, allocations: 491.5 kB / 417.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.3144, allocations: 115.2 kB / 417.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003647/0.3148, allocations: 441.1 kB / 417.8 MB, free: 7.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001508/0.3163, allocations: 1.279 MB / 419 MB, free: 5.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3163, allocations: 0 / 419 MB, free: 5.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3163, allocations: 0 / 419 MB, free: 5.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.3164, allocations: 0 / 419 MB, free: 5.91 MB / 334.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.001911/0.3183, allocations: 1.486 MB / 420.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3183, allocations: 8.031 kB / 420.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.908e-05/0.3184, allocations: 62.53 kB / 420.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.3186, allocations: 135.1 kB / 420.7 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.3196, allocations: 0.8632 MB / 421.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.3197, allocations: 16.44 kB / 421.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.234e-05/0.3197, allocations: 24 kB / 421.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005342/0.3203, allocations: 306.6 kB / 421.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.3203, allocations: 0 / 421.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.3203, allocations: 8 kB / 421.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.3203, allocations: 15.94 kB / 421.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003889/0.3207, allocations: 221.8 kB / 422.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.3224, allocations: 1.122 MB / 423.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003858/0.3228, allocations: 250.4 kB / 423.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004654/0.3233, allocations: 300.9 kB / 423.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009348/0.3243, allocations: 0.7477 MB / 424.6 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.3243, allocations: 42.48 kB / 424.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.844e-06/0.3243, allocations: 0 / 424.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.002854/0.3272, allocations: 1.57 MB / 426.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.3273, allocations: 110.8 kB / 426.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009388/0.3282, allocations: 0.9418 MB / 427.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.3282, allocations: 25.7 kB / 427.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002553/0.3285, allocations: 361.7 kB / 427.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.808e-05/0.3286, allocations: 138.8 kB / 427.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.3288, allocations: 117.7 kB / 427.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3289, allocations: 325.9 kB / 428.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.3291, allocations: 120.6 kB / 428.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002574/0.3294, allocations: 159.8 kB / 428.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/0.3307, allocations: 0.7371 MB / 429.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3307, allocations: 3.938 kB / 429.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009062/0.3316, allocations: 0.5699 MB / 429.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.807e-05/0.3317, allocations: 37.69 kB / 429.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.023e-05/0.3317, allocations: 16 kB / 429.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002309/0.332, allocations: 69.72 kB / 429.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.3322, allocations: 43.97 kB / 429.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002477/0.3347, allocations: 3.331 MB / 433.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.335, allocations: 11.98 kB / 433.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-05/0.3351, allocations: 20.09 kB / 433.3 MB, free: 6.789 MB / 350.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.000392/0.3355, allocations: 256 kB / 433.5 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.3356, allocations: 131.1 kB / 433.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.3368, allocations: 0.6646 MB / 434.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3368, allocations: 4 kB / 434.3 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3368, allocations: 4 kB / 434.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3368, allocations: 0 / 434.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006685/0.3375, allocations: 0.6083 MB / 434.9 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.572e-05/0.3376, allocations: 23.92 kB / 435 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.3377, allocations: 27.98 kB / 435 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001869/0.3379, allocations: 77.61 kB / 435.1 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.949e-05/0.338, allocations: 15.98 kB / 435.1 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002277/0.3403, allocations: 3.335 MB / 438.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.3403, allocations: 3.984 kB / 438.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.3415, allocations: 0.8595 MB / 439.3 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003939/0.3419, allocations: 276.2 kB / 439.6 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.381e-05/0.342, allocations: 8 kB / 439.6 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.3423, allocations: 15.92 kB / 439.6 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.991e-05/0.3424, allocations: 39.91 kB / 439.6 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.104e-05/0.3425, allocations: 19.98 kB / 439.6 MB, free: 28 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007448/0.3432, allocations: 0.6296 MB / 440.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3432, allocations: 0 / 440.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008132/0.344, allocations: 231.5 kB / 440.5 MB, free: 15.17 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.001986/0.346, allocations: 1.59 MB / 442.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.3472, allocations: 0.7845 MB / 442.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3472, allocations: 0 / 442.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006339/0.3479, allocations: 0.6126 MB / 443.5 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005914/0.3485, allocations: 124.8 kB / 443.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007243/0.3557, allocations: 5.759 MB / 449.4 MB, free: 5.977 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.3562, allocations: 1.004 MB / 450.4 MB, free: 4.945 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002587/0.3565, allocations: 93.64 kB / 450.5 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002961/0.3568, allocations: 291.3 kB / 450.7 MB, free: 4.57 MB / 366.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3568, allocations: 0 / 450.7 MB, free: 4.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04347/0.4003, allocations: 17.25 MB / 468 MB, free: 3.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.41, allocations: 8.891 kB / 468 MB, free: 3.465 MB / 382.1 MB (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 1e-05 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) 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) Reference file matches