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.007865/0.007865, allocations: 102 kB / 15.73 MB, free: 6.484 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.001964/0.001964, allocations: 190.2 kB / 16.67 MB, free: 6.379 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.267/1.267, allocations: 205.1 MB / 222.5 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06109/0.06109, allocations: 14.16 MB / 284.1 MB, free: 6.988 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.001534/0.001534, allocations: 59.91 kB / 396 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2428, allocations: 50.15 MB / 446.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4Windings): time 0.00593/0.2488, allocations: 5.487 MB / 451.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005149/0.254, allocations: 2.961 MB / 454.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000681/0.2547, allocations: 11.47 kB / 454.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008982/0.2556, allocations: 266.7 kB / 454.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00336/0.259, allocations: 1.218 MB / 456.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.2603, allocations: 475.8 kB / 456.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001912/0.2622, allocations: 1.415 MB / 458 MB, free: 8.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/0.2624, allocations: 80.84 kB / 458 MB, free: 8.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000989/0.2634, allocations: 0.5028 MB / 458.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.2645, allocations: 0.5376 MB / 459.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002096/0.2648, allocations: 78.06 kB / 459.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009612/0.2657, allocations: 324.9 kB / 459.5 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.2659, allocations: 177.8 kB / 459.6 MB, free: 7.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007486/0.2667, allocations: 458.6 kB / 460.1 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001823/0.2685, allocations: 1.171 MB / 461.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2685, allocations: 4 kB / 461.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2686, allocations: 0 / 461.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.019e-05/0.2686, 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.004172/0.2728, allocations: 1.374 MB / 462.6 MB, free: 5.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.2728, allocations: 9.562 kB / 462.6 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000125/0.273, allocations: 85.08 kB / 462.7 MB, free: 5.492 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005447/0.2735, allocations: 103.4 kB / 462.8 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.2747, allocations: 0.566 MB / 463.4 MB, free: 4.961 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.819e-05/0.2747, allocations: 39.69 kB / 463.4 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.2749, allocations: 67.22 kB / 463.5 MB, free: 4.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008916/0.2758, allocations: 484.4 kB / 464 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.2758, allocations: 4 kB / 464 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.343e-05/0.2758, allocations: 15.41 kB / 464 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.2759, allocations: 10.69 kB / 464 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009204/0.2768, allocations: 498 kB / 464.5 MB, free: 4.371 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.005537/0.2823, allocations: 3.06 MB / 467.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.2836, allocations: 0.7722 MB / 468.3 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/0.284, allocations: 234.5 kB / 468.5 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.069e-05/0.2841, allocations: 8.562 kB / 468.6 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.2841, allocations: 39.78 kB / 468.6 MB, free: 168 kB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.896e-06/0.2841, allocations: 0 / 468.6 MB, free: 168 kB / 334.1 MB Notification: Performance of matching and sorting (n=62): time 0.003749/0.2879, allocations: 1.276 MB / 469.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.2879, allocations: 63.91 kB / 469.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007089/0.2886, allocations: 0.5338 MB / 470.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.461e-05/0.2888, allocations: 45.7 kB / 470.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.289, allocations: 253.2 kB / 470.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.2892, allocations: 224.8 kB / 471 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002508/0.2894, allocations: 174.6 kB / 471.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.2896, allocations: 374.8 kB / 471.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005196/0.2901, allocations: 317.9 kB / 471.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005577/0.2907, allocations: 401.4 kB / 472.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009471/0.2916, allocations: 0.6357 MB / 472.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.2916, allocations: 0 / 472.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003091/0.2947, allocations: 1.287 MB / 474.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2948, allocations: 7.938 kB / 474.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.2948, allocations: 4 kB / 474.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002705/0.2975, allocations: 0.6184 MB / 474.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009214/0.2984, allocations: 215.7 kB / 475 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.3088, allocations: 11.52 MB / 486.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008632/0.3097, allocations: 75.12 kB / 486.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.229e-05/0.3098, allocations: 31.98 kB / 486.6 MB, free: 13.02 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.0003029/0.3101, allocations: 193.7 kB / 486.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.3102, allocations: 67.19 kB / 486.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/0.3118, allocations: 0.7635 MB / 487.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.3118, allocations: 8 kB / 487.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3118, allocations: 0 / 487.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.3118, allocations: 7.922 kB / 487.6 MB, free: 11.96 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.002496/0.3143, allocations: 1.618 MB / 489.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3144, allocations: 0 / 489.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006122/0.315, allocations: 131.9 kB / 489.4 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000858/0.3159, allocations: 252.2 kB / 489.6 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.919e-05/0.3159, allocations: 12 kB / 489.6 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003439/0.3194, allocations: 2.605 MB / 492.2 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3194, allocations: 0 / 492.2 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.3214, allocations: 1.101 MB / 493.3 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003633/0.3218, allocations: 208.1 kB / 493.6 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.728e-05/0.3219, allocations: 15.98 kB / 493.6 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004541/0.3223, allocations: 16 kB / 493.6 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.3225, allocations: 40.5 kB / 493.6 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.3225, allocations: 19.98 kB / 493.6 MB, free: 5.691 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004206/0.3229, allocations: 354.9 kB / 494 MB, free: 5.348 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3229, allocations: 3.938 kB / 494 MB, free: 5.344 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009417/0.3239, allocations: 283.8 kB / 494.3 MB, free: 5.066 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.002261/0.3262, allocations: 1.711 MB / 496 MB, free: 3.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.3289, allocations: 1.69 MB / 497.7 MB, free: 1.543 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3289, allocations: 0 / 497.7 MB, free: 1.543 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009318/0.3299, allocations: 0.5171 MB / 498.2 MB, free: 1.008 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007465/0.3306, allocations: 102.7 kB / 498.3 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01135/0.342, allocations: 6.825 MB / 0.4933 GB, free: 9.945 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.3425, allocations: 0.8993 MB / 0.4942 GB, free: 9.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003021/0.3428, allocations: 64.86 kB / 0.4942 GB, free: 8.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/0.3431, allocations: 223.4 kB / 0.4944 GB, free: 8.738 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3431, allocations: 0 / 0.4944 GB, free: 8.738 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04766/0.3908, allocations: 18.74 MB / 0.5127 GB, free: 5.965 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.54, allocations: 0 / 0.5127 GB, free: 5.965 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 & /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