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.00169/0.00169, allocations: 108.8 kB / 17.06 MB, free: 5.781 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.00182/0.00182, allocations: 193.4 kB / 18 MB, free: 4.945 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.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 47.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.264, allocations: 49.45 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.0066/0.2707, allocations: 5.186 MB / 405.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00929/0.28, allocations: 6.623 MB / 412 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007937/0.2808, allocations: 39.69 kB / 412.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.2822, allocations: 0.5076 MB / 412.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002407/0.2847, allocations: 0.8108 MB / 413.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.286, allocations: 438.4 kB / 413.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003239/0.2893, allocations: 1.993 MB / 415.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000322/0.2896, allocations: 175 kB / 416 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005184/0.2901, allocations: 350.2 kB / 416.3 MB, free: 8.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004345/0.2906, allocations: 345.7 kB / 416.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.84e-05/0.2906, allocations: 28 kB / 416.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001115/0.2918, allocations: 495.5 kB / 417.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.2919, allocations: 111.2 kB / 417.3 MB, free: 7.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004145/0.2923, allocations: 449 kB / 417.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001618/0.2939, allocations: 1.279 MB / 419 MB, free: 5.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.294, allocations: 0 / 419 MB, free: 5.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.294, allocations: 0 / 419 MB, free: 5.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.294, allocations: 4 kB / 419 MB, free: 5.957 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.001988/0.296, allocations: 1.482 MB / 420.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.296, allocations: 8.031 kB / 420.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.044e-05/0.2961, allocations: 62.53 kB / 420.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.2963, allocations: 139.1 kB / 420.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/0.2974, allocations: 0.8593 MB / 421.6 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.2975, allocations: 12.44 kB / 421.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.975e-05/0.2975, allocations: 24 kB / 421.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005411/0.2981, allocations: 306.6 kB / 421.9 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2981, allocations: 4 kB / 421.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.143e-05/0.2981, allocations: 12 kB / 421.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.2982, allocations: 7.938 kB / 421.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004267/0.2986, allocations: 225.8 kB / 422.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.3003, allocations: 1.118 MB / 423.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004291/0.3008, allocations: 246.4 kB / 423.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005046/0.3013, allocations: 297 kB / 423.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001018/0.3023, allocations: 0.7554 MB / 424.5 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.3024, allocations: 34.5 kB / 424.6 MB, free: 40 kB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 1.853e-06/0.3024, allocations: 4 kB / 424.6 MB, free: 36 kB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.003049/0.3054, allocations: 1.57 MB / 426.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.999e-05/0.3055, allocations: 118.8 kB / 426.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.3066, allocations: 0.934 MB / 427.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.3066, allocations: 29.7 kB / 427.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003065/0.307, allocations: 357.7 kB / 427.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.3071, allocations: 138.8 kB / 427.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.3073, allocations: 117.7 kB / 427.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.3074, allocations: 329.8 kB / 428.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.3077, allocations: 128.6 kB / 428.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002801/0.308, allocations: 155.8 kB / 428.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.3095, allocations: 0.7293 MB / 429.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3095, allocations: 8 kB / 429.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009702/0.3105, allocations: 0.566 MB / 429.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.359e-05/0.3105, allocations: 33.7 kB / 429.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/0.3106, allocations: 19.98 kB / 429.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002326/0.3108, allocations: 69.72 kB / 429.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.3111, allocations: 39.97 kB / 429.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002885/0.314, allocations: 3.335 MB / 433.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.3143, allocations: 16.02 kB / 433.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.522e-05/0.3143, allocations: 20 kB / 433.3 MB, free: 6.844 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.0004357/0.3148, allocations: 260.1 kB / 433.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.3149, allocations: 131.1 kB / 433.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.3163, allocations: 0.6607 MB / 434.3 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3163, allocations: 0 / 434.3 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.3163, allocations: 7.984 kB / 434.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3163, allocations: 0 / 434.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000755/0.3171, allocations: 0.6121 MB / 434.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.753e-05/0.3171, allocations: 15.94 kB / 434.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.3173, allocations: 31.97 kB / 435 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000205/0.3175, allocations: 77.61 kB / 435 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.613e-05/0.3175, allocations: 16 kB / 435.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002739/0.3203, allocations: 3.332 MB / 438.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.832e-06/0.3203, allocations: 4 kB / 438.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.3217, allocations: 0.8634 MB / 439.3 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000367/0.3221, allocations: 276.2 kB / 439.5 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.306e-05/0.3222, allocations: 8 kB / 439.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002666/0.3225, allocations: 15.92 kB / 439.6 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.776e-05/0.3226, allocations: 39.91 kB / 439.6 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.3226, allocations: 24 kB / 439.6 MB, free: 80 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000797/0.3234, allocations: 0.6257 MB / 440.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3234, allocations: 0 / 440.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007873/0.3242, allocations: 227.5 kB / 440.5 MB, free: 15.22 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.002168/0.3264, allocations: 1.599 MB / 442.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.3276, allocations: 0.7767 MB / 442.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3276, allocations: 0 / 442.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007375/0.3284, allocations: 0.6244 MB / 443.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006167/0.329, allocations: 116.6 kB / 443.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007848/0.3369, allocations: 5.756 MB / 449.3 MB, free: 6.031 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006348/0.3375, allocations: 1.008 MB / 450.3 MB, free: 4.996 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002777/0.3378, allocations: 89.66 kB / 450.4 MB, free: 4.906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000337/0.3382, allocations: 283.3 kB / 450.7 MB, free: 4.629 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3382, allocations: 0 / 450.7 MB, free: 4.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05313/0.3913, allocations: 17.25 MB / 468 MB, free: 3.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.5, allocations: 16.83 kB / 468 MB, free: 3.504 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