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.001984/0.001984, allocations: 112.5 kB / 15.73 MB, free: 76 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.002588/0.002588, allocations: 193 kB / 16.67 MB, free: 6.582 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.503/1.503, allocations: 205.1 MB / 222.5 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.0978/0.0978, allocations: 14.17 MB / 284.1 MB, free: 7.008 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.003208/0.003208, allocations: 67.91 kB / 396 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.3006, allocations: 50.15 MB / 446.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4Windings): time 0.01026/0.3109, allocations: 5.481 MB / 451.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007802/0.3188, allocations: 2.964 MB / 454.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009815/0.3198, allocations: 10.91 kB / 454.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.3211, allocations: 272.1 kB / 454.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004467/0.3257, allocations: 1.203 MB / 456.1 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.3272, allocations: 483.2 kB / 456.5 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002778/0.33, allocations: 1.422 MB / 458 MB, free: 8.695 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002848/0.3303, allocations: 78.34 kB / 458 MB, free: 8.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001088/0.3314, allocations: 0.4959 MB / 458.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001087/0.3325, allocations: 0.5375 MB / 459.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001609/0.3326, allocations: 76.59 kB / 459.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001069/0.3337, allocations: 325.8 kB / 459.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002249/0.334, allocations: 178 kB / 459.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006396/0.3346, allocations: 463.1 kB / 460.1 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002037/0.3367, allocations: 1.174 MB / 461.3 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3367, allocations: 0 / 461.3 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3367, allocations: 0 / 461.3 MB, free: 6.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.501e-05/0.3367, allocations: 0 / 461.3 MB, free: 6.578 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.005774/0.3425, allocations: 1.405 MB / 462.7 MB, free: 5.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.3426, allocations: 8.906 kB / 462.7 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001396/0.3427, allocations: 85.05 kB / 462.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000616/0.3434, allocations: 103.6 kB / 462.9 MB, free: 5.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/0.3449, allocations: 0.5583 MB / 463.4 MB, free: 4.965 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.94e-05/0.345, allocations: 44.88 kB / 463.5 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.3451, allocations: 71.59 kB / 463.5 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.3464, allocations: 478.4 kB / 464 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.3464, allocations: 0 / 464 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.067e-05/0.3465, allocations: 20.38 kB / 464 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.3465, allocations: 10.97 kB / 464 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.3478, allocations: 499.1 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.006166/0.354, allocations: 3.081 MB / 467.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001402/0.3554, allocations: 0.7612 MB / 468.4 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004106/0.3559, allocations: 238.5 kB / 468.6 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.09e-05/0.3559, allocations: 4.562 kB / 468.6 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.356, allocations: 39.12 kB / 468.6 MB, free: 140 kB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.354e-06/0.356, allocations: 0 / 468.6 MB, free: 140 kB / 334.1 MB Notification: Performance of matching and sorting (n=62): time 0.004043/0.36, allocations: 1.281 MB / 469.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.544e-05/0.3601, allocations: 59.97 kB / 470 MB, free: 14.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006792/0.3608, allocations: 0.534 MB / 470.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.515e-05/0.3608, allocations: 41.7 kB / 470.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002452/0.3611, allocations: 261.5 kB / 470.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002231/0.3613, allocations: 237.9 kB / 471 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002686/0.3616, allocations: 174.6 kB / 471.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.3618, allocations: 366.8 kB / 471.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005883/0.3624, allocations: 325.9 kB / 471.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007844/0.3632, allocations: 397.4 kB / 472.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/0.3643, allocations: 0.6357 MB / 472.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3643, allocations: 0 / 472.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003273/0.3676, allocations: 1.287 MB / 474.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.3677, allocations: 4 kB / 474.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.3677, allocations: 11.94 kB / 474.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002664/0.3703, allocations: 0.6178 MB / 474.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009106/0.3713, allocations: 219.7 kB / 475 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01275/0.384, allocations: 11.52 MB / 486.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009593/0.385, allocations: 79.41 kB / 486.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.251e-05/0.3851, allocations: 35.98 kB / 486.7 MB, free: 12.96 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.0004338/0.3855, allocations: 189.7 kB / 486.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.3858, allocations: 71.52 kB / 486.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002297/0.3881, allocations: 0.7751 MB / 487.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.3881, allocations: 8 kB / 487.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.3881, allocations: 4 kB / 487.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.3881, allocations: 7.922 kB / 487.7 MB, free: 11.89 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.002936/0.3911, allocations: 1.606 MB / 489.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.3911, allocations: 4 kB / 489.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006622/0.3918, allocations: 135.8 kB / 489.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009087/0.3927, allocations: 244.3 kB / 489.7 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/0.3927, allocations: 12 kB / 489.7 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00389/0.3966, allocations: 2.609 MB / 492.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3966, allocations: 3.938 kB / 492.3 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.399, allocations: 1.109 MB / 493.4 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000378/0.3994, allocations: 204.5 kB / 493.6 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.559e-05/0.3995, allocations: 8 kB / 493.6 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004578/0.3999, allocations: 23.95 kB / 493.7 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.4001, allocations: 48.48 kB / 493.7 MB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.673e-05/0.4001, allocations: 16 kB / 493.7 MB, free: 5.621 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004579/0.4006, allocations: 354.9 kB / 494.1 MB, free: 5.277 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4006, allocations: 4 kB / 494.1 MB, free: 5.273 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000945/0.4015, allocations: 279.9 kB / 494.3 MB, free: 5 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.002618/0.4042, allocations: 1.712 MB / 496.1 MB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003747/0.4079, allocations: 1.698 MB / 497.8 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.408, allocations: 0 / 497.8 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001652/0.4096, allocations: 0.5325 MB / 498.3 MB, free: 0.918 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.4108, allocations: 95.66 kB / 498.4 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01921/0.43, allocations: 6.82 MB / 0.4934 GB, free: 9.863 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008284/0.4309, allocations: 0.8994 MB / 0.4942 GB, free: 8.938 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004582/0.4314, allocations: 68.86 kB / 0.4943 GB, free: 8.871 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005212/0.4319, allocations: 223.4 kB / 0.4945 GB, free: 8.652 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4319, allocations: 0 / 0.4945 GB, free: 8.652 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06641/0.4983, allocations: 18.15 MB / 0.5122 GB, free: 6.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.18, allocations: 0 / 0.5122 GB, free: 6.48 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