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.005872/0.005872, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.001566/0.001566, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.563/1.563, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.07307/0.07307, allocations: 14.17 MB / 284.1 MB, free: 7 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.001616/0.001617, allocations: 68.53 kB / 396 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3448, allocations: 50.14 MB / 446.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4Windings): time 0.009794/0.3546, allocations: 5.496 MB / 451.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007538/0.3623, allocations: 2.958 MB / 454.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008895/0.3632, allocations: 11.28 kB / 454.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.3645, allocations: 279.2 kB / 454.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003722/0.3683, allocations: 1.227 MB / 456.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.3697, allocations: 483.4 kB / 456.6 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002397/0.3721, allocations: 1.415 MB / 458 MB, free: 8.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002907/0.3724, allocations: 79.03 kB / 458.1 MB, free: 8.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001248/0.3737, allocations: 0.4953 MB / 458.6 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001077/0.3748, allocations: 0.5487 MB / 459.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002349/0.375, allocations: 76.84 kB / 459.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001155/0.3762, allocations: 326.4 kB / 459.5 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002225/0.3764, allocations: 178.2 kB / 459.7 MB, free: 7.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008649/0.3773, allocations: 450.8 kB / 460.1 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002445/0.3798, allocations: 1.185 MB / 461.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3798, allocations: 0 / 461.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3798, allocations: 1.062 kB / 461.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.448e-05/0.3799, allocations: 0 / 461.3 MB, free: 6.531 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.004933/0.3848, allocations: 1.396 MB / 462.7 MB, free: 5.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.3849, allocations: 13.2 kB / 462.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001442/0.385, allocations: 85.44 kB / 462.8 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005493/0.3856, allocations: 111.5 kB / 462.9 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.387, allocations: 0.5665 MB / 463.5 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.575e-05/0.3871, allocations: 43.5 kB / 463.5 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.3872, allocations: 68.52 kB / 463.6 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009137/0.3881, allocations: 477.8 kB / 464 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.3881, allocations: 1.094 kB / 464 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.074e-05/0.3882, allocations: 20.16 kB / 464.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.131e-05/0.3883, allocations: 10.47 kB / 464.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.3893, allocations: 494.7 kB / 464.6 MB, free: 4.32 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.006043/0.3954, allocations: 3.067 MB / 467.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.3969, allocations: 0.7686 MB / 468.4 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003994/0.3973, allocations: 238.5 kB / 468.6 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.906e-05/0.3974, allocations: 8.562 kB / 468.6 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.3974, allocations: 39.12 kB / 468.7 MB, free: 88 kB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.785e-06/0.3974, allocations: 0 / 468.7 MB, free: 88 kB / 334.1 MB Notification: Performance of matching and sorting (n=62): time 0.004266/0.4017, allocations: 1.277 MB / 469.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.4018, allocations: 63.97 kB / 470 MB, free: 14.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007812/0.4025, allocations: 0.5262 MB / 470.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001395/0.4027, allocations: 41.7 kB / 470.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002799/0.403, allocations: 261.5 kB / 470.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002454/0.4033, allocations: 237.9 kB / 471.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002569/0.4035, allocations: 170.6 kB / 471.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.4037, allocations: 378.8 kB / 471.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005788/0.4043, allocations: 325.8 kB / 471.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006401/0.4049, allocations: 401.4 kB / 472.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.4061, allocations: 0.6358 MB / 472.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.4061, allocations: 0 / 472.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003503/0.4097, allocations: 1.283 MB / 474.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.4097, allocations: 8 kB / 474.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.4097, allocations: 4.062 kB / 474.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00293/0.4127, allocations: 0.6189 MB / 474.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.4138, allocations: 211.8 kB / 475.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01278/0.4266, allocations: 11.53 MB / 486.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.4277, allocations: 79.39 kB / 486.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.4278, allocations: 32 kB / 486.7 MB, free: 12.91 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.0003526/0.4282, allocations: 201.6 kB / 486.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.4284, allocations: 71.52 kB / 487 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.4302, allocations: 0.7635 MB / 487.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.4302, allocations: 8 kB / 487.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4302, allocations: 0 / 487.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.4302, allocations: 7.922 kB / 487.8 MB, free: 11.85 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.003304/0.4335, allocations: 1.614 MB / 489.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4336, allocations: 0 / 489.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006553/0.4342, allocations: 131.9 kB / 489.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009782/0.4352, allocations: 252.4 kB / 489.7 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.749e-05/0.4353, allocations: 12 kB / 489.8 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003908/0.4392, allocations: 2.602 MB / 492.4 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.4392, allocations: 0 / 492.4 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002353/0.4416, allocations: 1.105 MB / 493.5 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004421/0.442, allocations: 204.5 kB / 493.7 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002784/0.4423, allocations: 12 kB / 493.7 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005247/0.4429, allocations: 28.19 kB / 493.7 MB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.443, allocations: 40.5 kB / 493.7 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.172e-05/0.4431, allocations: 23.94 kB / 493.8 MB, free: 5.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00048/0.4435, allocations: 358.8 kB / 494.1 MB, free: 5.223 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4435, allocations: 0 / 494.1 MB, free: 5.223 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001111/0.4447, allocations: 279.9 kB / 494.4 MB, free: 4.949 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.002955/0.4476, allocations: 1.712 MB / 496.1 MB, free: 3.203 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003791/0.4514, allocations: 1.701 MB / 497.8 MB, free: 1.414 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.4515, allocations: 0 / 497.8 MB, free: 1.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.4527, allocations: 0.5325 MB / 498.3 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.4539, allocations: 101.5 kB / 498.4 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/0.4679, allocations: 6.816 MB / 0.4934 GB, free: 9.812 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005545/0.4685, allocations: 0.8994 MB / 0.4943 GB, free: 8.887 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000393/0.4689, allocations: 84.75 kB / 0.4944 GB, free: 8.805 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003746/0.4693, allocations: 223.4 kB / 0.4946 GB, free: 8.586 MB / 382.1 MB Notification: Performance of SimCode: time 1.203e-06/0.4694, allocations: 3.938 kB / 0.4946 GB, free: 8.582 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07083/0.5402, allocations: 18.11 MB / 0.5123 GB, free: 6.438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.76/14.3, allocations: 4.062 kB / 0.5123 GB, free: 6.434 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 & 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