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.001115/0.001115, allocations: 113.2 kB / 17.73 MB, free: 5.355 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.001107/0.001107, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.293/1.293, 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.001228/0.001228, allocations: 51.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08042/0.08165, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.1729/0.2546, allocations: 5.2 MB / 379.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008431/0.2631, allocations: 6.571 MB / 386.4 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008141/0.264, allocations: 41.19 kB / 386.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.2655, allocations: 0.4946 MB / 386.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002734/0.2683, allocations: 0.8176 MB / 387.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001459/0.2698, allocations: 441 kB / 388.2 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00313/0.2729, allocations: 1.985 MB / 390.2 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000315/0.2732, allocations: 164.6 kB / 390.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006558/0.2739, allocations: 367.5 kB / 390.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006141/0.2745, allocations: 343.1 kB / 391 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001534/0.2747, allocations: 29.88 kB / 391.1 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001393/0.2761, allocations: 468.9 kB / 391.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.2763, allocations: 112.9 kB / 391.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005604/0.2768, allocations: 440.7 kB / 392 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002091/0.2789, allocations: 1.29 MB / 393.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2789, allocations: 0 / 393.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.2789, allocations: 1.281 kB / 393.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.593e-05/0.279, allocations: 4 kB / 393.3 MB, free: 3.812 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.002399/0.2814, allocations: 1.483 MB / 394.8 MB, free: 2.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2815, allocations: 9.406 kB / 394.8 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.48e-05/0.2815, allocations: 64.77 kB / 394.9 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/0.2818, allocations: 132.9 kB / 395 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001245/0.283, allocations: 0.8571 MB / 395.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.283, allocations: 17.62 kB / 395.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.563e-05/0.2831, allocations: 26.42 kB / 395.9 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005468/0.2837, allocations: 305.9 kB / 396.2 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.2837, allocations: 4 kB / 396.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.001e-05/0.2837, allocations: 14.16 kB / 396.2 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.2837, allocations: 5.938 kB / 396.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000421/0.2842, allocations: 224 kB / 396.5 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001905/0.2861, allocations: 1.129 MB / 397.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000388/0.2865, allocations: 241.1 kB / 397.8 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004733/0.287, allocations: 286.9 kB / 398.1 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007992/0.2878, allocations: 0.7609 MB / 398.9 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.2878, allocations: 39.36 kB / 398.9 MB, free: 68 kB / 318.1 MB Notification: Performance of pre-optimization done (n=38): time 1.874e-06/0.2878, allocations: 0 / 398.9 MB, free: 68 kB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.003185/0.291, allocations: 1.563 MB / 400.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/0.2911, allocations: 118.6 kB / 400.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/0.2925, allocations: 0.9345 MB / 401.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.2925, allocations: 31.95 kB / 401.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000294/0.2928, allocations: 354.1 kB / 401.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.2929, allocations: 141.7 kB / 402 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.2931, allocations: 119.5 kB / 402.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.847e-05/0.2932, allocations: 321.2 kB / 402.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000262/0.2935, allocations: 125.6 kB / 402.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.2938, allocations: 164.3 kB / 402.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.2952, allocations: 0.7293 MB / 403.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.2952, allocations: 5.781 kB / 403.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001022/0.2963, allocations: 0.5579 MB / 404.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.66e-05/0.2963, allocations: 39.72 kB / 404.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.27e-05/0.2964, allocations: 12.42 kB / 404.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002314/0.2966, allocations: 74.36 kB / 404.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.2968, allocations: 49.64 kB / 404.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002426/0.2993, allocations: 3.335 MB / 407.6 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004022/0.2997, allocations: 12.38 kB / 407.6 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.604e-05/0.2998, allocations: 20.84 kB / 407.6 MB, free: 9.629 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.000411/0.3002, allocations: 265.2 kB / 407.8 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002047/0.3004, allocations: 125.8 kB / 408 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001326/0.3017, allocations: 0.6622 MB / 408.6 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.3018, allocations: 2.5 kB / 408.6 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3018, allocations: 7.016 kB / 408.6 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.3018, allocations: 1.172 kB / 408.6 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009828/0.3028, allocations: 0.6206 MB / 409.3 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.807e-05/0.3028, allocations: 11.16 kB / 409.3 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.303, allocations: 43.36 kB / 409.3 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002027/0.3032, allocations: 72.58 kB / 409.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.269e-05/0.3033, allocations: 20.97 kB / 409.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002284/0.3056, allocations: 3.327 MB / 412.7 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3056, allocations: 0 / 412.7 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.307, allocations: 0.8609 MB / 413.6 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004642/0.3075, allocations: 278.4 kB / 413.9 MB, free: 4.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/0.3076, allocations: 15.45 kB / 413.9 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000318/0.308, allocations: 9.594 kB / 413.9 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.401e-05/0.3081, allocations: 32.44 kB / 413.9 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.249e-05/0.3081, allocations: 21.3 kB / 413.9 MB, free: 4.461 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008603/0.309, allocations: 0.6281 MB / 414.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.309, allocations: 0 / 414.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009442/0.31, allocations: 225.9 kB / 414.8 MB, free: 4.055 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.002217/0.3122, allocations: 1.614 MB / 416.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.3133, allocations: 0.7818 MB / 417.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3133, allocations: 1.844 kB / 417.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006652/0.314, allocations: 0.6226 MB / 417.8 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006715/0.3147, allocations: 97.59 kB / 417.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008131/0.3228, allocations: 5.767 MB / 423.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005336/0.3234, allocations: 1 MB / 424.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002816/0.3237, allocations: 93.64 kB / 424.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000289/0.324, allocations: 283.3 kB / 425 MB, free: 11.85 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.324, allocations: 7.938 kB / 425.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04454/0.3685, allocations: 17.26 MB / 442.3 MB, free: 10.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.16, allocations: 4.797 kB / 442.3 MB, free: 10.5 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