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.001642/0.001642, allocations: 108 kB / 15.6 MB, free: 132 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.001846/0.001846, allocations: 194 kB / 16.53 MB, free: 6.391 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.472/1.472, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06322/0.06322, allocations: 14.16 MB / 283.9 MB, free: 7.066 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.001502/0.001502, allocations: 71.48 kB / 345.2 MB, free: 19.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08427/0.08579, allocations: 50.13 MB / 395.3 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4Windings): time 0.00702/0.09285, allocations: 5.495 MB / 400.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004632/0.09751, allocations: 2.955 MB / 403.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005557/0.09809, allocations: 11.94 kB / 403.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007653/0.09887, allocations: 270.4 kB / 404 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002716/0.1016, allocations: 1.203 MB / 405.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009456/0.1026, allocations: 482.1 kB / 405.7 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001653/0.1042, allocations: 1.41 MB / 407.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.1045, allocations: 81.73 kB / 407.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007357/0.1052, allocations: 494.4 kB / 407.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008031/0.106, allocations: 0.5487 MB / 408.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001926/0.1062, allocations: 76 kB / 408.3 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007933/0.107, allocations: 323.8 kB / 408.6 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.1072, allocations: 179.3 kB / 408.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005574/0.1078, allocations: 453.8 kB / 409.2 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001317/0.1091, allocations: 1.137 MB / 410.4 MB, free: 1.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1091, allocations: 0 / 410.4 MB, free: 1.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.093e-06/0.1092, allocations: 0 / 410.4 MB, free: 1.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.65e-05/0.1092, allocations: 0 / 410.4 MB, free: 1.98 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.003801/0.113, allocations: 1.38 MB / 411.8 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.113, allocations: 12.03 kB / 411.8 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.625e-05/0.1131, allocations: 82.7 kB / 411.9 MB, free: 456 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003887/0.1135, allocations: 104 kB / 412 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009232/0.1145, allocations: 0.5559 MB / 412.5 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.625e-05/0.1145, allocations: 53.38 kB / 412.6 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.1146, allocations: 59.94 kB / 412.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007729/0.1154, allocations: 478.1 kB / 413.1 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.1154, allocations: 11.86 kB / 413.1 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/0.1155, allocations: 20 kB / 413.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1155, allocations: 8 kB / 413.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008355/0.1163, allocations: 487.7 kB / 413.6 MB, free: 14.64 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.00523/0.1216, allocations: 3.082 MB / 416.7 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.1229, allocations: 0.7697 MB / 417.5 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003936/0.1233, allocations: 238.6 kB / 417.7 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.726e-05/0.1234, allocations: 16.48 kB / 417.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.1234, allocations: 35.12 kB / 417.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of pre-optimization done (n=62): time 1.924e-06/0.1234, allocations: 0 / 417.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of matching and sorting (n=62): time 0.003797/0.1272, allocations: 1.276 MB / 419 MB, free: 8.824 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.418e-05/0.1273, allocations: 67.95 kB / 419.1 MB, free: 8.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006279/0.1279, allocations: 0.5222 MB / 419.6 MB, free: 8.207 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.996e-05/0.128, allocations: 45.7 kB / 419.6 MB, free: 8.156 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.1282, allocations: 257.2 kB / 419.9 MB, free: 7.898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.1284, allocations: 224.7 kB / 420.1 MB, free: 7.676 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.1286, allocations: 174.5 kB / 420.3 MB, free: 7.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1288, allocations: 374.8 kB / 420.7 MB, free: 7.125 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.1294, allocations: 325.9 kB / 421 MB, free: 6.809 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006075/0.13, allocations: 389.4 kB / 421.4 MB, free: 6.422 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.131, allocations: 0.6357 MB / 422 MB, free: 5.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.1311, allocations: 0 / 422 MB, free: 5.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.00316/0.1342, allocations: 1.279 MB / 423.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1343, allocations: 4 kB / 423.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.1343, allocations: 8.062 kB / 423.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002689/0.137, allocations: 0.6222 MB / 423.9 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009251/0.1379, allocations: 211.8 kB / 424.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1453/0.2832, allocations: 11.52 MB / 435.6 MB, free: 30.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007687/0.284, allocations: 79.08 kB / 435.7 MB, free: 30.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.348e-05/0.2841, allocations: 31.22 kB / 435.7 MB, free: 30.35 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.0002431/0.2843, allocations: 202.3 kB / 435.9 MB, free: 30.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.2845, allocations: 64.16 kB / 436 MB, free: 30.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001566/0.286, allocations: 0.7679 MB / 436.8 MB, free: 29.85 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.2861, allocations: 9.531 kB / 436.8 MB, free: 29.85 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2861, allocations: 5.188 kB / 436.8 MB, free: 29.85 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.2861, allocations: 6.656 kB / 436.8 MB, free: 29.85 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 postOpt removeSimpleEquations (simulation): time 0.00247/0.2886, allocations: 1.619 MB / 438.4 MB, free: 28.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.2886, allocations: 4.641 kB / 438.4 MB, free: 28.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006624/0.2892, allocations: 138.3 kB / 438.5 MB, free: 28.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009079/0.2902, allocations: 251.9 kB / 438.8 MB, free: 28.89 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.06e-05/0.2902, allocations: 12.61 kB / 438.8 MB, free: 28.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003286/0.2935, allocations: 2.608 MB / 441.4 MB, free: 26.95 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2935, allocations: 3.422 kB / 441.4 MB, free: 26.95 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001991/0.2955, allocations: 1.099 MB / 442.5 MB, free: 26.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000304/0.2958, allocations: 201.4 kB / 442.7 MB, free: 26.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.602e-05/0.2959, allocations: 11.25 kB / 442.7 MB, free: 26.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004499/0.2964, allocations: 17 kB / 442.7 MB, free: 26.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.2965, allocations: 45.48 kB / 442.8 MB, free: 26.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/0.2966, allocations: 16.12 kB / 442.8 MB, free: 26.22 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004332/0.297, allocations: 361.9 kB / 443.1 MB, free: 26.05 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.297, allocations: 0 / 443.1 MB, free: 26.05 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000901/0.2979, allocations: 284.2 kB / 443.4 MB, free: 26.02 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.002177/0.3001, allocations: 1.705 MB / 445.1 MB, free: 24.94 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.002972/0.3031, allocations: 1.714 MB / 446.8 MB, free: 23.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3031, allocations: 0 / 446.8 MB, free: 23.82 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.0009303/0.304, allocations: 0.5195 MB / 447.4 MB, free: 23.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006347/0.3047, allocations: 115 kB / 447.5 MB, free: 23.49 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.01064/0.3153, allocations: 7.031 MB / 454.5 MB, free: 19.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/0.3156, allocations: 0.8994 MB / 455.4 MB, free: 18.97 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002876/0.3159, allocations: 68.95 kB / 455.5 MB, free: 18.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.3162, allocations: 230.5 kB / 455.7 MB, free: 18.79 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3162, allocations: 0 / 455.7 MB, free: 18.79 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04396/0.3602, allocations: 17.82 MB / 473.5 MB, free: 3.125 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.15, allocations: 12 kB / 473.5 MB, free: 3.113 MB / 318.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