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.005764/0.005764, allocations: 100.6 kB / 15.73 MB, free: 6.039 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.001164/0.001164, allocations: 187.5 kB / 16.67 MB, free: 5.969 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.374/1.374, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06634/0.06634, allocations: 14.16 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.001569/0.001569, allocations: 67.91 kB / 396 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2458, allocations: 50.14 MB / 446.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4Windings): time 0.006147/0.252, allocations: 5.501 MB / 451.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004818/0.2569, allocations: 2.953 MB / 454.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007304/0.2576, allocations: 10.69 kB / 454.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008544/0.2585, allocations: 266.9 kB / 454.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003131/0.2617, allocations: 1.21 MB / 456.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001284/0.263, allocations: 475.4 kB / 456.5 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002483/0.2655, allocations: 1.411 MB / 457.9 MB, free: 8.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002572/0.2657, allocations: 88.25 kB / 458 MB, free: 8.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009108/0.2667, allocations: 0.5 MB / 458.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.2677, allocations: 0.5375 MB / 459.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002752/0.268, allocations: 76.12 kB / 459.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.2692, allocations: 325.4 kB / 459.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002439/0.2695, allocations: 182.8 kB / 459.6 MB, free: 7.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008016/0.2703, allocations: 458.9 kB / 460.1 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00174/0.2721, allocations: 1.175 MB / 461.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.2721, allocations: 7.922 kB / 461.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2721, allocations: 0 / 461.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.2721, allocations: 1.469 kB / 461.3 MB, free: 6.562 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.003833/0.2759, allocations: 1.361 MB / 462.6 MB, free: 5.594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.276, allocations: 8.938 kB / 462.6 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.145e-05/0.2761, allocations: 85.02 kB / 462.7 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004293/0.2765, allocations: 111.3 kB / 462.8 MB, free: 5.461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.2777, allocations: 0.5537 MB / 463.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4e-05/0.2777, allocations: 44.91 kB / 463.4 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.2778, allocations: 71.86 kB / 463.5 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008544/0.2787, allocations: 482.8 kB / 464 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.2787, allocations: 0 / 464 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.354e-05/0.2788, allocations: 20.28 kB / 464 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.2788, allocations: 9.875 kB / 464 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008832/0.2797, allocations: 490.6 kB / 464.5 MB, free: 4.398 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.00542/0.2851, allocations: 3.07 MB / 467.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.2864, allocations: 0.7767 MB / 468.3 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000381/0.2868, allocations: 234.5 kB / 468.6 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.239e-05/0.2869, allocations: 4.562 kB / 468.6 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.2869, allocations: 39.12 kB / 468.6 MB, free: 184 kB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.726e-06/0.2869, allocations: 0 / 468.6 MB, free: 184 kB / 334.1 MB Notification: Performance of matching and sorting (n=62): time 0.003904/0.2909, allocations: 1.28 MB / 469.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.2909, allocations: 55.97 kB / 469.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006972/0.2916, allocations: 0.5377 MB / 470.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.459e-05/0.2917, allocations: 41.7 kB / 470.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002018/0.2919, allocations: 249.2 kB / 470.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002153/0.2922, allocations: 236.8 kB / 471 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002485/0.2924, allocations: 170.6 kB / 471.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.2926, allocations: 374.7 kB / 471.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005347/0.2931, allocations: 321.9 kB / 471.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006069/0.2937, allocations: 397.4 kB / 472.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.2947, allocations: 0.6396 MB / 472.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2948, allocations: 0 / 472.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003137/0.2979, allocations: 1.287 MB / 474.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.2979, allocations: 4 kB / 474.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2979, allocations: 0 / 474.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002633/0.3006, allocations: 0.6185 MB / 474.8 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009839/0.3016, allocations: 215.7 kB / 475 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/0.3126, allocations: 11.52 MB / 486.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008888/0.3135, allocations: 79.12 kB / 486.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.958e-05/0.3136, allocations: 31.98 kB / 486.6 MB, free: 13.03 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.0003226/0.314, allocations: 197.7 kB / 486.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001773/0.3142, allocations: 67.19 kB / 486.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001664/0.3158, allocations: 0.7596 MB / 487.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.3159, allocations: 12 kB / 487.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.3159, allocations: 8 kB / 487.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.3159, allocations: 7.922 kB / 487.7 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.002712/0.3186, allocations: 1.602 MB / 489.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3186, allocations: 4 kB / 489.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006574/0.3193, allocations: 135.8 kB / 489.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008878/0.3202, allocations: 248.1 kB / 489.6 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-05/0.3203, allocations: 11.98 kB / 489.6 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003651/0.3239, allocations: 2.61 MB / 492.3 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3239, allocations: 0 / 492.3 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002194/0.3261, allocations: 1.109 MB / 493.4 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000473/0.3266, allocations: 208.1 kB / 493.6 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001466/0.3268, allocations: 8 kB / 493.6 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005287/0.3273, allocations: 16 kB / 493.6 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.3275, allocations: 44.48 kB / 493.6 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/0.3275, allocations: 16 kB / 493.6 MB, free: 5.703 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004424/0.328, allocations: 358.9 kB / 494 MB, free: 5.355 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.328, allocations: 4 kB / 494 MB, free: 5.352 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009829/0.329, allocations: 287.8 kB / 494.3 MB, free: 5.07 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.002478/0.3314, allocations: 1.696 MB / 496 MB, free: 3.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002955/0.3344, allocations: 1.694 MB / 497.7 MB, free: 1.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.3344, allocations: 4 kB / 497.7 MB, free: 1.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.3355, allocations: 0.5132 MB / 498.2 MB, free: 1.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008379/0.3363, allocations: 106.5 kB / 498.3 MB, free: 0.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.3487, allocations: 6.817 MB / 0.4933 GB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005615/0.3493, allocations: 0.8954 MB / 0.4941 GB, free: 9.043 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003472/0.3497, allocations: 72.78 kB / 0.4942 GB, free: 8.973 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003881/0.3501, allocations: 227.4 kB / 0.4944 GB, free: 8.75 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3501, allocations: 0 / 0.4944 GB, free: 8.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04981/0.3999, allocations: 18.74 MB / 0.5127 GB, free: 5.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.47, allocations: 11.92 kB / 0.5127 GB, free: 5.969 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