Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_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.001473/0.001473, allocations: 114.5 kB / 17.73 MB, free: 5.332 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.001596/0.001597, allocations: 183 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08024/0.0815, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.1774/0.2589, allocations: 5.203 MB / 379.8 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007242/0.2662, allocations: 6.563 MB / 386.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006573/0.2669, allocations: 43.81 kB / 386.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.2682, allocations: 0.4984 MB / 386.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002441/0.2707, allocations: 0.8113 MB / 387.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001309/0.272, allocations: 432.1 kB / 388.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002935/0.275, allocations: 1.992 MB / 390.2 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003095/0.2753, allocations: 165.3 kB / 390.3 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005555/0.2759, allocations: 365.9 kB / 390.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003563/0.2762, allocations: 343 kB / 391 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.744e-05/0.2763, allocations: 30.47 kB / 391.1 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001236/0.2776, allocations: 469.8 kB / 391.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.896e-05/0.2777, allocations: 112.2 kB / 391.6 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003547/0.278, allocations: 449.6 kB / 392.1 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001738/0.2798, allocations: 1.279 MB / 393.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2798, allocations: 3.938 kB / 393.3 MB, free: 3.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2798, allocations: 1.625 kB / 393.3 MB, free: 3.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.273e-05/0.2798, allocations: 0 / 393.3 MB, free: 3.797 MB / 318.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.001938/0.2818, allocations: 1.49 MB / 394.8 MB, free: 2.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.2818, allocations: 9.594 kB / 394.8 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.983e-05/0.2819, allocations: 60.28 kB / 394.9 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.2821, allocations: 132.4 kB / 395 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.2833, allocations: 0.8573 MB / 395.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.434e-05/0.2833, allocations: 18.81 kB / 395.9 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.29e-05/0.2834, allocations: 27.02 kB / 395.9 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005631/0.2839, allocations: 309 kB / 396.2 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.284, allocations: 0 / 396.2 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.284, allocations: 15.52 kB / 396.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.284, allocations: 5.719 kB / 396.3 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000427/0.2844, allocations: 219.9 kB / 396.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.2863, allocations: 1.128 MB / 397.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003953/0.2868, allocations: 243.2 kB / 397.8 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004641/0.2872, allocations: 294.6 kB / 398.1 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008415/0.2881, allocations: 0.7613 MB / 398.9 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.2881, allocations: 36.66 kB / 398.9 MB, free: 48 kB / 318.1 MB Notification: Performance of pre-optimization done (n=38): time 2.514e-06/0.2881, allocations: 0 / 398.9 MB, free: 48 kB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.003118/0.2913, allocations: 1.565 MB / 400.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.2913, allocations: 111.3 kB / 400.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.2925, allocations: 0.9391 MB / 401.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.234e-05/0.2925, allocations: 31.28 kB / 401.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003081/0.2928, allocations: 354.1 kB / 401.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.293, allocations: 145.2 kB / 402.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.2932, allocations: 119.2 kB / 402.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.2933, allocations: 322.3 kB / 402.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002568/0.2936, allocations: 121.6 kB / 402.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.2939, allocations: 163 kB / 402.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.2953, allocations: 0.7359 MB / 403.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2953, allocations: 0 / 403.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001028/0.2964, allocations: 0.5636 MB / 404.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.205e-05/0.2964, allocations: 36.48 kB / 404.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.84e-05/0.2965, allocations: 17.94 kB / 404.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002227/0.2967, allocations: 72.48 kB / 404.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.297, allocations: 39.94 kB / 404.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0026/0.2996, allocations: 3.335 MB / 407.6 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.3001, allocations: 19.48 kB / 407.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.674e-05/0.3002, allocations: 22.28 kB / 407.6 MB, free: 9.609 MB / 334.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.0004862/0.3007, allocations: 259.4 kB / 407.9 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000205/0.3009, allocations: 129.3 kB / 408 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.3022, allocations: 0.6622 MB / 408.6 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.3023, allocations: 3.312 kB / 408.6 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3023, allocations: 5.062 kB / 408.6 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3023, allocations: 2.984 kB / 408.7 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.3033, allocations: 0.6186 MB / 409.3 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.038e-05/0.3034, allocations: 15.81 kB / 409.3 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.3036, allocations: 30.77 kB / 409.3 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002124/0.3038, allocations: 72.19 kB / 409.4 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.655e-05/0.3038, allocations: 19.83 kB / 409.4 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002421/0.3063, allocations: 3.342 MB / 412.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3063, allocations: 0 / 412.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.3078, allocations: 0.8536 MB / 413.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004882/0.3083, allocations: 277.9 kB / 413.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.3084, allocations: 14.86 kB / 413.9 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002841/0.3087, allocations: 10.28 kB / 413.9 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.789e-05/0.3088, allocations: 32.81 kB / 413.9 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-05/0.3089, allocations: 18.05 kB / 413.9 MB, free: 4.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008625/0.3097, allocations: 0.6308 MB / 414.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3098, allocations: 0 / 414.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009923/0.3108, allocations: 226.4 kB / 414.8 MB, free: 4.031 MB / 334.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.002163/0.3129, allocations: 1.61 MB / 416.4 MB, free: 2.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.3142, allocations: 0.7819 MB / 417.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3142, allocations: 6.625 kB / 417.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007119/0.3149, allocations: 0.614 MB / 417.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007063/0.3156, allocations: 106.2 kB / 417.9 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008004/0.3236, allocations: 5.766 MB / 423.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005151/0.3242, allocations: 1.008 MB / 424.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003196/0.3245, allocations: 89.64 kB / 424.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003073/0.3249, allocations: 287.3 kB / 425.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3249, allocations: 0 / 425.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04157/0.3664, allocations: 17.25 MB / 442.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.61, allocations: 8.734 kB / 442.3 MB, free: 10.46 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches