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.002511/0.002511, 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.002287/0.002286, allocations: 193.7 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.487/1.487, allocations: 205.1 MB / 222.4 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06203/0.06203, allocations: 14.16 MB / 283.9 MB, free: 7.09 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.001433/0.001433, allocations: 76.11 kB / 345.2 MB, free: 19.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08736/0.08881, allocations: 50.13 MB / 395.3 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4Windings): time 0.006264/0.0951, allocations: 5.492 MB / 400.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004957/0.1001, allocations: 2.952 MB / 403.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006439/0.1007, allocations: 11.88 kB / 403.8 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008508/0.1017, allocations: 274.4 kB / 404 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002927/0.1046, allocations: 1.207 MB / 405.2 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000975/0.1056, allocations: 480.3 kB / 405.7 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00193/0.1075, allocations: 1.402 MB / 407.1 MB, free: 5.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.1078, allocations: 85.75 kB / 407.2 MB, free: 5.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009595/0.1088, allocations: 0.4905 MB / 407.7 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.1099, allocations: 0.5371 MB / 408.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000251/0.1101, allocations: 80 kB / 408.3 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001034/0.1112, allocations: 323.8 kB / 408.6 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002316/0.1114, allocations: 183.2 kB / 408.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008152/0.1123, allocations: 453.9 kB / 409.2 MB, free: 3.129 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002148/0.1144, allocations: 1.134 MB / 410.4 MB, free: 1.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.1144, allocations: 8 kB / 410.4 MB, free: 1.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1144, allocations: 0 / 410.4 MB, free: 1.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.338e-05/0.1145, allocations: 0 / 410.4 MB, free: 1.984 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.005053/0.1196, allocations: 1.376 MB / 411.8 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.1196, allocations: 8.031 kB / 411.8 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/0.1198, allocations: 86.7 kB / 411.8 MB, free: 460 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005187/0.1204, allocations: 108 kB / 412 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.1215, allocations: 0.548 MB / 412.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.914e-05/0.1215, allocations: 53.3 kB / 412.6 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.1217, allocations: 67.94 kB / 412.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008723/0.1225, allocations: 482 kB / 413.1 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.1226, allocations: 0 / 413.1 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.389e-05/0.1226, allocations: 16 kB / 413.1 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.1226, allocations: 12 kB / 413.1 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008447/0.1235, allocations: 495.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.005506/0.129, allocations: 3.078 MB / 416.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.1304, allocations: 0.7807 MB / 417.5 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003704/0.1307, allocations: 238.5 kB / 417.7 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.424e-05/0.1308, allocations: 4.562 kB / 417.7 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.1308, allocations: 39.69 kB / 417.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=62): time 2.205e-06/0.1308, allocations: 0 / 417.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=62): time 0.003797/0.1346, allocations: 1.276 MB / 419 MB, free: 8.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.1347, allocations: 59.97 kB / 419.1 MB, free: 8.762 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006751/0.1354, allocations: 0.5338 MB / 419.6 MB, free: 8.215 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.122e-05/0.1355, allocations: 41.7 kB / 419.6 MB, free: 8.168 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.1357, allocations: 257.2 kB / 419.9 MB, free: 7.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002122/0.1359, allocations: 224.7 kB / 420.1 MB, free: 7.688 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002728/0.1362, allocations: 182.5 kB / 420.3 MB, free: 7.504 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1363, allocations: 370.8 kB / 420.7 MB, free: 7.133 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005703/0.1369, allocations: 321.9 kB / 421 MB, free: 6.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005938/0.1375, allocations: 397.4 kB / 421.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.1385, allocations: 0.6318 MB / 422 MB, free: 5.785 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1385, allocations: 0 / 422 MB, free: 5.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003096/0.1416, allocations: 1.279 MB / 423.3 MB, free: 4.473 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.1417, allocations: 4 kB / 423.3 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1417, allocations: 8.047 kB / 423.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002653/0.1444, allocations: 0.6261 MB / 423.9 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008799/0.1452, allocations: 215.7 kB / 424.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1483/0.2935, allocations: 11.51 MB / 435.6 MB, free: 30.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008252/0.2944, allocations: 78.8 kB / 435.7 MB, free: 30.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.687e-05/0.2945, allocations: 30.67 kB / 435.7 MB, free: 30.43 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.0002532/0.2947, allocations: 202.6 kB / 435.9 MB, free: 30.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.2948, allocations: 66.16 kB / 436 MB, free: 30.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.2963, allocations: 0.7725 MB / 436.8 MB, free: 29.92 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.2964, allocations: 5.375 kB / 436.8 MB, free: 29.92 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.2964, allocations: 3.25 kB / 436.8 MB, free: 29.92 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.2964, allocations: 4.297 kB / 436.8 MB, free: 29.92 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.00233/0.2987, allocations: 1.619 MB / 438.4 MB, free: 29.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.2987, allocations: 3.938 kB / 438.4 MB, free: 29.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006048/0.2993, allocations: 133.6 kB / 438.5 MB, free: 29.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008302/0.3002, allocations: 253.2 kB / 438.8 MB, free: 28.97 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/0.3002, allocations: 12.25 kB / 438.8 MB, free: 28.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003039/0.3033, allocations: 2.609 MB / 441.4 MB, free: 27.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3033, allocations: 0.9219 kB / 441.4 MB, free: 27.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.3052, allocations: 1.102 MB / 442.5 MB, free: 26.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003024/0.3055, allocations: 202.2 kB / 442.7 MB, free: 26.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.705e-05/0.3056, allocations: 12.59 kB / 442.7 MB, free: 26.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004393/0.306, allocations: 16.94 kB / 442.7 MB, free: 26.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.3062, allocations: 41.84 kB / 442.8 MB, free: 26.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.3062, allocations: 15.66 kB / 442.8 MB, free: 26.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004671/0.3067, allocations: 362.7 kB / 443.1 MB, free: 26.13 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3067, allocations: 0 / 443.1 MB, free: 26.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009645/0.3077, allocations: 283.8 kB / 443.4 MB, free: 26.09 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.002091/0.3098, allocations: 1.704 MB / 445.1 MB, free: 25.02 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.00333/0.3131, allocations: 1.717 MB / 446.8 MB, free: 23.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3131, allocations: 0 / 446.8 MB, free: 23.89 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.0009918/0.3141, allocations: 0.5211 MB / 447.4 MB, free: 23.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007672/0.3149, allocations: 111.9 kB / 447.5 MB, free: 23.56 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.011/0.3259, allocations: 7.03 MB / 454.5 MB, free: 19.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.3263, allocations: 0.9011 MB / 455.4 MB, free: 19.05 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003297/0.3266, allocations: 64.12 kB / 455.5 MB, free: 19.03 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002739/0.3269, allocations: 224.4 kB / 455.7 MB, free: 18.87 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3269, allocations: 4 kB / 455.7 MB, free: 18.86 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04283/0.3697, allocations: 17.84 MB / 473.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.92, allocations: 11.89 kB / 473.5 MB, free: 3.129 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4Windings_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4Windings.fmu > PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings_res.mat","/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