Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) 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(PowerGrids.Electrical.Test.SynchronousMachine4Windings,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4Windings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.SynchronousMachine4Windings,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4Windings",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.008091/0.008091, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.002029/0.002029, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.541/1.541, allocations: 205.1 MB / 222.6 MB, free: 4.406 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.07058/0.07058, allocations: 14.17 MB / 284.1 MB, free: 6.848 MB / 238.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.002144/0.002144, allocations: 67.91 kB / 396 MB, free: 488 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2621, allocations: 50.14 MB / 446.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4Windings): time 0.006042/0.2682, allocations: 5.489 MB / 451.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004926/0.2732, allocations: 2.956 MB / 454.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000422/0.2736, allocations: 16.19 kB / 454.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008177/0.2745, allocations: 267 kB / 454.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002877/0.2774, allocations: 1.201 MB / 456.1 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.2784, allocations: 483.7 kB / 456.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002027/0.2805, allocations: 1.419 MB / 458 MB, free: 8.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.2807, allocations: 82.25 kB / 458 MB, free: 8.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007809/0.2815, allocations: 0.4918 MB / 458.5 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007126/0.2822, allocations: 0.5333 MB / 459.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001355/0.2824, allocations: 78.34 kB / 459.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007849/0.2832, allocations: 324.2 kB / 459.5 MB, free: 7.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.2834, allocations: 186.5 kB / 459.6 MB, free: 7.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004747/0.2839, allocations: 458.3 kB / 460.1 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00173/0.2856, allocations: 1.183 MB / 461.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2856, allocations: 4 kB / 461.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2856, allocations: 0 / 461.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.2856, allocations: 0 / 461.3 MB, free: 6.551 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.00402/0.2897, allocations: 1.388 MB / 462.7 MB, free: 5.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.2897, allocations: 9.656 kB / 462.7 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/0.2898, allocations: 84.25 kB / 462.8 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004148/0.2903, allocations: 112.4 kB / 462.9 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.2914, allocations: 0.5624 MB / 463.4 MB, free: 4.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.407e-05/0.2915, allocations: 44.97 kB / 463.5 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.2916, allocations: 66.98 kB / 463.5 MB, free: 4.895 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008297/0.2924, allocations: 486.4 kB / 464 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.2924, allocations: 1.312 kB / 464 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.456e-05/0.2925, allocations: 19.44 kB / 464 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.2925, allocations: 10.94 kB / 464 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008698/0.2934, allocations: 490.3 kB / 464.5 MB, free: 4.352 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005819/0.2992, allocations: 3.071 MB / 467.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3006, allocations: 0.7688 MB / 468.4 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003905/0.301, allocations: 234.5 kB / 468.6 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.039e-05/0.3011, allocations: 12.55 kB / 468.6 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.3011, allocations: 43.12 kB / 468.6 MB, free: 124 kB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 4.388e-06/0.3011, allocations: 3.984 kB / 468.6 MB, free: 120 kB / 334.1 MB Notification: Performance of matching and sorting (n=62): time 0.004093/0.3052, allocations: 1.273 MB / 469.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.3053, allocations: 59.97 kB / 470 MB, free: 14.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006979/0.306, allocations: 0.5223 MB / 470.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.276e-05/0.3061, allocations: 49.69 kB / 470.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002152/0.3063, allocations: 261.5 kB / 470.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00025/0.3065, allocations: 237.9 kB / 471 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/0.3068, allocations: 178.6 kB / 471.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.307, allocations: 370.8 kB / 471.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005692/0.3076, allocations: 317.9 kB / 471.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006344/0.3082, allocations: 405.3 kB / 472.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/0.3093, allocations: 0.6319 MB / 472.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3093, allocations: 0 / 472.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003318/0.3127, allocations: 1.287 MB / 474.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.3127, allocations: 7.938 kB / 474.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3127, allocations: 0 / 474.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002795/0.3155, allocations: 0.6222 MB / 474.8 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000959/0.3165, allocations: 219.7 kB / 475 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/0.3288, allocations: 11.52 MB / 486.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009082/0.3297, allocations: 79.39 kB / 486.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.36e-05/0.3298, allocations: 31.98 kB / 486.7 MB, free: 12.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (100): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,12), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003499/0.3302, allocations: 201.7 kB / 486.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.3303, allocations: 71.52 kB / 486.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.3321, allocations: 0.7635 MB / 487.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.3321, allocations: 12 kB / 487.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3321, allocations: 0 / 487.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.3321, allocations: 7.938 kB / 487.7 MB, free: 11.88 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002746/0.3349, allocations: 1.614 MB / 489.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3349, allocations: 0 / 489.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006594/0.3356, allocations: 131.9 kB / 489.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008771/0.3364, allocations: 248.2 kB / 489.7 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.695e-05/0.3365, allocations: 12 kB / 489.7 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003799/0.3403, allocations: 2.609 MB / 492.3 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3403, allocations: 0 / 492.3 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.3425, allocations: 1.105 MB / 493.4 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003681/0.3429, allocations: 204.5 kB / 493.6 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.46e-05/0.343, allocations: 12 kB / 493.6 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004636/0.3435, allocations: 24.19 kB / 493.7 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.3436, allocations: 40.5 kB / 493.7 MB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.254e-05/0.3436, allocations: 20 kB / 493.7 MB, free: 5.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004497/0.3441, allocations: 362.8 kB / 494.1 MB, free: 5.262 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3441, allocations: 0 / 494.1 MB, free: 5.262 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000942/0.3451, allocations: 279.9 kB / 494.4 MB, free: 4.988 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (machine.theta,machine.omegaPu,machine.lambdaDPu,machine.lambdafPu,machine.lambdaQ1Pu,machine.lambdaQ2Pu) * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,12,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002635/0.3477, allocations: 1.708 MB / 496.1 MB, free: 3.246 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003149/0.3509, allocations: 1.694 MB / 497.8 MB, free: 1.465 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3509, allocations: 4 kB / 497.8 MB, free: 1.461 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.352, allocations: 0.5325 MB / 498.3 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008002/0.3528, allocations: 98.67 kB / 498.4 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01304/0.3658, allocations: 6.824 MB / 0.4934 GB, free: 9.848 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005809/0.3665, allocations: 0.8994 MB / 0.4943 GB, free: 8.922 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003175/0.3668, allocations: 80.75 kB / 0.4943 GB, free: 8.844 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.3671, allocations: 223.4 kB / 0.4945 GB, free: 8.625 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3672, allocations: 0 / 0.4945 GB, free: 8.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0597/0.4269, allocations: 18.12 MB / 0.5122 GB, free: 6.477 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/14.96, allocations: 4.062 kB / 0.5122 GB, free: 6.473 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4Windings.fmu > PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.SynchronousMachine4Windings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches