Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.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.SynchronousMachine4WindingsNoLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsNoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsNoLoad",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.008016/0.008016, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002188/0.002188, allocations: 203.5 kB / 16.68 MB, free: 5.969 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.485/1.485, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06397/0.06397, allocations: 14.17 MB / 284.1 MB, free: 7.004 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.001566/0.001566, allocations: 67.91 kB / 396 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2794, allocations: 50.14 MB / 446.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad): time 0.006417/0.2858, allocations: 5.496 MB / 451.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004983/0.2909, allocations: 2.95 MB / 454.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004723/0.2914, allocations: 10.44 kB / 454.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000726/0.2921, allocations: 278.7 kB / 454.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003071/0.2952, allocations: 1.235 MB / 456.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.2963, allocations: 483.2 kB / 456.6 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001752/0.298, allocations: 1.417 MB / 458 MB, free: 8.652 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.2982, allocations: 81.8 kB / 458.1 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005808/0.2988, allocations: 0.494 MB / 458.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006506/0.2995, allocations: 0.5499 MB / 459.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.2996, allocations: 78.06 kB / 459.2 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008587/0.3005, allocations: 323.1 kB / 459.5 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.3007, allocations: 179 kB / 459.7 MB, free: 7.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004853/0.3012, allocations: 462.2 kB / 460.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001413/0.3026, allocations: 1.19 MB / 461.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3026, allocations: 0 / 461.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3026, allocations: 1 kB / 461.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.3026, allocations: 0 / 461.3 MB, free: 6.512 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.003852/0.3065, allocations: 1.398 MB / 462.7 MB, free: 5.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3065, allocations: 9.719 kB / 462.7 MB, free: 5.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.767e-05/0.3066, allocations: 84.05 kB / 462.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004165/0.3071, allocations: 103.4 kB / 462.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.3081, allocations: 0.568 MB / 463.5 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.576e-05/0.3082, allocations: 44.12 kB / 463.5 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.3083, allocations: 67.23 kB / 463.6 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007931/0.3091, allocations: 488.1 kB / 464.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3091, allocations: 0 / 464.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.118e-05/0.3092, allocations: 14.94 kB / 464.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.3092, allocations: 11.53 kB / 464.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008204/0.31, allocations: 499.1 kB / 464.6 MB, free: 4.305 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.005218/0.3153, allocations: 3.285 MB / 467.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.3166, allocations: 0.7761 MB / 468.6 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004033/0.317, allocations: 234.5 kB / 468.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.397e-05/0.3171, allocations: 5.219 kB / 468.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.3171, allocations: 39.12 kB / 468.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 3.777e-06/0.3171, allocations: 7.922 kB / 468.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=62): time 0.003816/0.3209, allocations: 1.281 MB / 470.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.321, allocations: 55.97 kB / 470.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006336/0.3216, allocations: 0.5301 MB / 470.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.926e-05/0.3217, allocations: 45.7 kB / 470.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/0.3219, allocations: 261.5 kB / 471.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.3221, allocations: 237.9 kB / 471.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002441/0.3223, allocations: 174.6 kB / 471.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3225, allocations: 378.8 kB / 471.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005251/0.3231, allocations: 313.9 kB / 472.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000597/0.3237, allocations: 405.4 kB / 472.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.3247, allocations: 0.6396 MB / 473.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3247, allocations: 0 / 473.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003085/0.3278, allocations: 1.283 MB / 474.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.3278, allocations: 4 kB / 474.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.3278, allocations: 11.94 kB / 474.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002659/0.3305, allocations: 0.6066 MB / 475.1 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009302/0.3314, allocations: 215.7 kB / 475.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.3426, allocations: 11.53 MB / 486.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008987/0.3435, allocations: 79.39 kB / 486.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.797e-05/0.3436, allocations: 28 kB / 487 MB, free: 12.62 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.000308/0.3439, allocations: 201.7 kB / 487.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.344, allocations: 67.52 kB / 487.2 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.3457, allocations: 0.7635 MB / 488 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.3457, allocations: 4 kB / 488 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3457, allocations: 8 kB / 488 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.3457, allocations: 7.922 kB / 488 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002534/0.3482, allocations: 1.618 MB / 489.6 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3483, allocations: 0 / 489.6 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006674/0.3489, allocations: 135.8 kB / 489.7 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008672/0.3498, allocations: 248.3 kB / 490 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.83e-05/0.3499, allocations: 15.98 kB / 490 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003455/0.3533, allocations: 2.605 MB / 492.6 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3533, allocations: 3.938 kB / 492.6 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.3553, allocations: 1.105 MB / 493.7 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003045/0.3556, allocations: 204.6 kB / 493.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.772e-05/0.3557, allocations: 12 kB / 493.9 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004729/0.3562, allocations: 23.94 kB / 494 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.862e-05/0.3563, allocations: 40.5 kB / 494 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.3564, allocations: 16 kB / 494 MB, free: 5.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000431/0.3568, allocations: 362.8 kB / 494.4 MB, free: 4.926 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.994e-06/0.3568, allocations: 4 kB / 494.4 MB, free: 4.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009624/0.3578, allocations: 287.8 kB / 494.7 MB, free: 4.641 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.002505/0.3603, allocations: 1.7 MB / 496.4 MB, free: 2.906 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002955/0.3633, allocations: 1.705 MB / 498.1 MB, free: 1.113 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3633, allocations: 0 / 498.1 MB, free: 1.113 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.3643, allocations: 0.5287 MB / 498.6 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008091/0.3652, allocations: 102.3 kB / 498.7 MB, free: 476 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/0.3773, allocations: 6.852 MB / 0.4937 GB, free: 9.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005441/0.3779, allocations: 0.8955 MB / 0.4946 GB, free: 8.551 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000326/0.3782, allocations: 80.75 kB / 0.4946 GB, free: 8.473 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003621/0.3786, allocations: 227.4 kB / 0.4949 GB, free: 8.25 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3786, allocations: 0 / 0.4949 GB, free: 8.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04855/0.4271, allocations: 18.23 MB / 0.5127 GB, free: 6.008 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/13.99, allocations: 7.938 kB / 0.5127 GB, free: 6 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsNoLoad.fmu > PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches