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.001949/0.001949, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002251/0.002251, allocations: 194.4 kB / 16.53 MB, free: 6.699 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.431/1.431, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06169/0.06169, allocations: 14.16 MB / 283.9 MB, free: 7.094 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.001419/0.001419, allocations: 75.83 kB / 345.2 MB, free: 19.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.102, allocations: 50.13 MB / 395.3 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad): time 0.008673/0.1108, allocations: 5.495 MB / 400.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006351/0.1172, allocations: 2.952 MB / 403.8 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006182/0.1178, allocations: 11.94 kB / 403.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.119, allocations: 274.4 kB / 404 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003782/0.1228, allocations: 1.204 MB / 405.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001342/0.1242, allocations: 478.2 kB / 405.7 MB, free: 6.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002141/0.1263, allocations: 1.406 MB / 407.1 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002705/0.1266, allocations: 89.73 kB / 407.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007694/0.1274, allocations: 494.4 kB / 407.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000915/0.1283, allocations: 0.5526 MB / 408.2 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001677/0.1285, allocations: 76 kB / 408.3 MB, free: 4.055 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009538/0.1295, allocations: 319.8 kB / 408.6 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.1297, allocations: 183.3 kB / 408.8 MB, free: 3.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005759/0.1303, allocations: 453.9 kB / 409.2 MB, free: 3.117 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001661/0.132, allocations: 1.149 MB / 410.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.132, allocations: 0 / 410.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.132, allocations: 0 / 410.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.132, allocations: 0 / 410.4 MB, free: 1.965 MB / 302.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.00533/0.1374, allocations: 1.386 MB / 411.8 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.1374, allocations: 8.031 kB / 411.8 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001317/0.1376, allocations: 86.66 kB / 411.9 MB, free: 436 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006319/0.1382, allocations: 108 kB / 412 MB, free: 328 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.1396, allocations: 0.5557 MB / 412.5 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.226e-05/0.1397, allocations: 45.38 kB / 412.6 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.1399, allocations: 63.94 kB / 412.6 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.1411, allocations: 490 kB / 413.1 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.1411, allocations: 0 / 413.1 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.106e-05/0.1412, allocations: 20 kB / 413.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.1412, allocations: 8 kB / 413.1 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.1426, allocations: 491.7 kB / 413.6 MB, free: 14.62 MB / 318.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.00785/0.1504, allocations: 3.302 MB / 416.9 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.1525, allocations: 0.7737 MB / 417.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006145/0.1531, allocations: 242.4 kB / 417.9 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.208e-05/0.1532, allocations: 4.562 kB / 417.9 MB, free: 9.891 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/0.1532, allocations: 39.12 kB / 418 MB, free: 9.844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=62): time 4.198e-06/0.1533, allocations: 4 kB / 418 MB, free: 9.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=62): time 0.00491/0.1582, allocations: 1.272 MB / 419.3 MB, free: 8.539 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.1583, allocations: 59.97 kB / 419.3 MB, free: 8.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006765/0.1589, allocations: 0.5339 MB / 419.9 MB, free: 7.918 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.992e-05/0.159, allocations: 41.7 kB / 419.9 MB, free: 7.871 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.1592, allocations: 261.2 kB / 420.1 MB, free: 7.609 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.1594, allocations: 224.7 kB / 420.4 MB, free: 7.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002526/0.1597, allocations: 178.5 kB / 420.5 MB, free: 7.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1599, allocations: 374.8 kB / 420.9 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005601/0.1604, allocations: 313.9 kB / 421.2 MB, free: 6.527 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005974/0.161, allocations: 401.4 kB / 421.6 MB, free: 6.129 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.1621, allocations: 0.6357 MB / 422.2 MB, free: 5.484 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1621, allocations: 0 / 422.2 MB, free: 5.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003226/0.1653, allocations: 1.283 MB / 423.5 MB, free: 4.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.1653, allocations: 7.984 kB / 423.5 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1653, allocations: 4 kB / 423.5 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002643/0.168, allocations: 0.6028 MB / 424.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000959/0.169, allocations: 219.7 kB / 424.4 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1584/0.3274, allocations: 11.51 MB / 435.9 MB, free: 30.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008699/0.3283, allocations: 86.44 kB / 435.9 MB, free: 30.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-05/0.3283, allocations: 26.41 kB / 436 MB, free: 30.33 MB / 318.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.0003072/0.3287, allocations: 208.3 kB / 436.2 MB, free: 30.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.3288, allocations: 65.61 kB / 436.2 MB, free: 30.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001674/0.3305, allocations: 0.7657 MB / 437 MB, free: 29.83 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3305, allocations: 7.828 kB / 437 MB, free: 29.83 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3305, allocations: 3.344 kB / 437 MB, free: 29.83 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.3305, allocations: 5.156 kB / 437 MB, free: 29.83 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00246/0.333, allocations: 1.627 MB / 438.6 MB, free: 28.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.333, allocations: 5.156 kB / 438.7 MB, free: 28.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006483/0.3337, allocations: 135.1 kB / 438.8 MB, free: 28.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009029/0.3346, allocations: 251.9 kB / 439 MB, free: 28.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.306e-05/0.3346, allocations: 12.23 kB / 439 MB, free: 28.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003163/0.3378, allocations: 2.608 MB / 441.7 MB, free: 26.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3378, allocations: 3.188 kB / 441.7 MB, free: 26.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001991/0.3398, allocations: 1.096 MB / 442.7 MB, free: 26.39 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/0.3402, allocations: 201.6 kB / 442.9 MB, free: 26.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.732e-05/0.3403, allocations: 15.69 kB / 443 MB, free: 26.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004595/0.3407, allocations: 16.38 kB / 443 MB, free: 26.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.3409, allocations: 42.72 kB / 443 MB, free: 26.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.39e-05/0.3409, allocations: 15.39 kB / 443 MB, free: 26.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005386/0.3415, allocations: 364 kB / 443.4 MB, free: 26.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.213e-06/0.3415, allocations: 4.406 kB / 443.4 MB, free: 26.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001173/0.3427, allocations: 288.8 kB / 443.7 MB, free: 26 MB / 318.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.002247/0.3449, allocations: 1.709 MB / 445.4 MB, free: 24.91 MB / 318.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created initialization part: time 0.003351/0.3483, allocations: 1.714 MB / 447.1 MB, free: 23.79 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.3483, allocations: 0 / 447.1 MB, free: 23.79 MB / 318.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created simulation system equations: time 0.001071/0.3494, allocations: 0.5198 MB / 447.6 MB, free: 23.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007815/0.3502, allocations: 113.1 kB / 447.7 MB, free: 23.46 MB / 318.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/0.3623, allocations: 7.059 MB / 454.8 MB, free: 19.65 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.3627, allocations: 0.9018 MB / 455.7 MB, free: 18.94 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002999/0.363, allocations: 64.59 kB / 455.8 MB, free: 18.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.3633, allocations: 216.8 kB / 456 MB, free: 18.77 MB / 318.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3633, allocations: 0 / 456 MB, free: 18.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06233/0.4256, allocations: 17.94 MB / 473.9 MB, free: 2.934 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.16, allocations: 7.656 kB / 473.9 MB, free: 2.926 MB / 318.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